题目描述
Problem Description
A dozen of pencils is 12 pencils, a gross is 144 pencils, and a great gross is 1728 pencils.
Given $ A $ great gross of pencils, $ B $ gross of pencils, $ C $ dozen of pencils, and $ D $ individual pencils, how many pencils are there in total?
Input Format
The input is given from the standard input in the following format:
$ A $ $ B $ $ C $ $ D $
Output Format
When the total number of pencils is $ x $, output $ x $.
Sample Input and Output
Sample Input #1
1 2 4 0
Sample Output #1
2064
Sample Input #2
0 0 0 0
Sample Output #2
0
Sample Input #3
8 11 5 4
Sample Output #3
15472
Notes/Hints
Constraints
- $ 0≦A,B,C,D≦11 $
- The input consists of integers
Sample Explanation 1
1 great gross is 1728 pencils, 2 gross is 288 pencils, and 4 dozen is 48 pencils, so in total, there are 2064 pencils.
Sample Explanation 2
There might be no pencils at all.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分
样例输入
1 2 4 0
样例输出
2064