This problem requires to compute some numbers!
Input Specification
First line: , number of iterations
Second line: 16 numbers, each of them
Output Specification
For each number, let it be .
Do these computations in order:
Also, if then . For each number, output sum of for each from to .
Constraints
Subtask 1 [100%]
Subtask 2 [0%]
Sample test cases.
Sample Input
10
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Sample Output
1 4732602024 6148672003 4338052043 4483023256 4518465763 4649308948 3879800457 3164030163 3788568405 6057821801 5081899390 3575845616 4623378973 4148490590 5052851606
Comments