PROGRAMMING:Knight's gold coin
The king rewarded his loyal knights with gold coins. The knight got a gold coin on his first day in office. For the next two days (the second and the third), I got two gold coins a day. For the next three days (the fourth, fifth and sixth days), I got three gold coins a day. For the next four days (the seventh, eighth, ninth and tenth days), I got four gold coins a day. This form of reward has been continued: that is, after Knights get n gold coins every day for N consecutive days, they will get n + 1 gold coins every day for N + 1 consecutive days, where n is any positive integer< br/>
Write a program to calculate the total number of gold coins (from the first day of service) for a given number of days.
###Input format:
The input file contains at least one line and at most 21 lines. Each line in the input (except the last line) represents a test case with only one positive integer representing the number of days. The range of days is from 1 to 10000. The last line of the input contains only the integer 0, indicating the end of the input.
###Output format:
For each test case in the input, just one line of data is output. It contains two positive integers separated by spaces. The former represents the number of days in the case, and the latter represents the total number of gold coins received by the knight from the first day to the specified number of days.
###Input example:
```in
ten
six
seven
eleven
fifteen
sixteen
one hundred
ten thousand
one thousand
twenty-one
twenty-two
0
```
###Output example:
```out
10 30
6 14
7 18
11 35
15 55
16 61
100 945
10000 942820
1000 29820
21 91
22 98
```
answer:If there is no answer, please comment
Write a program to calculate the total number of gold coins (from the first day of service) for a given number of days.
###Input format:
The input file contains at least one line and at most 21 lines. Each line in the input (except the last line) represents a test case with only one positive integer representing the number of days. The range of days is from 1 to 10000. The last line of the input contains only the integer 0, indicating the end of the input.
###Output format:
For each test case in the input, just one line of data is output. It contains two positive integers separated by spaces. The former represents the number of days in the case, and the latter represents the total number of gold coins received by the knight from the first day to the specified number of days.
###Input example:
```in
ten
six
seven
eleven
fifteen
sixteen
one hundred
ten thousand
one thousand
twenty-one
twenty-two
0
```
###Output example:
```out
10 30
6 14
7 18
11 35
15 55
16 61
100 945
10000 942820
1000 29820
21 91
22 98
```
answer:If there is no answer, please comment