uva12149測資B
Input:
1 93 58 100 3 25 72 0
Output:
1 272459 66729 338350 14 5525 127020