How to make a cake you'll never eat.
Ingredients.
Method.
Serves 1.
The only line of input contains a sequence of integers a0,a1,... (1≤a0≤100, 0≤ai≤1000 for i≥1).
Output a single integer.
4 1 2 3 4
30