4038.A Piece of Cake

Time Limit: 1s Memory Limit: 256MB

How to make a cake you'll never eat.

Ingredients.
2 carrots 0 calories 100 g chocolate spread 1 pack of flour 1 egg
Method.
Put calories into the mixing bowl. Take carrots from refrigerator. Chop carrots. Take chocolate spread from refrigerator. Put chocolate spread into the mixing bowl. Combine pack of flour into the mixing bowl. Fold chocolate spread into the mixing bowl. Add chocolate spread into the mixing bowl. Put pack of flour into the mixing bowl. Add egg into the mixing bowl. Fold pack of flour into the mixing bowl. Chop carrots until choped. Pour contents of the mixing bowl into the baking dish.
Serves 1.

Input Format(From the terminal/stdin)

The only line of input contains a sequence of integers a0,a1,... (1 \le a0 \le 100, 0 \le ai \le 1000 for i \ge 1).

Output Format(To the terminal/stdout)

Output a single integer.

Sample Input

Copy
4 1 2 3 4
 · · · · \n

Sample Output

Copy
30
  \n

Submit

请先 登录

© 2025 FAQs