Jõululaul
Time limit1sMemory limit1024 MB
Given N, print for each k from 1 to N the total count of gift A_k, which is k times (N minus k plus 1).
- Level
Easy1 of 10
- Topics
- Math, Implementation
- Solved
- No attempts yet
The Twelve Days of Christmas
On the second Advent today, we recall an English Christmas carol that is about 200 years old:
On the first day of Christmas, my true love sent to me one partridge in a pear tree.
On the second day of Christmas, my true love sent to me two turtle doves and a partridge in a pear tree.
On the third day of Christmas, my true love sent to me three French hens, two turtle doves and a partridge in a pear tree.
On the fourth day of Christmas, my true love sent to me four calling birds, three French hens, two turtle doves and a partridge in a pear tree.

In the magic land of programming exercises, Christmas lasts days, and there are different gifts, denoted , , , . On day of Christmas, my true love sends me one , two , three , , and of .
Write a program that finds how many gifts of each kind my true love sends me in total.
Input
A single line contains an integer , the number of days Christmas lasts in the magic land ().
Output
Print exactly lines, one integer per line. On line , print the total number of gifts received during the holiday.