P5697 [CEOI 2018] toy

Description

Johnny likes collecting toys. He has many different types of toys, and for each type he has many copies. Two toys of the same type cannot be distinguished. Emma asks Johnny how many toys he has. However, Johnny does not want to answer. He tells Emma that if he chooses some toys from all his toys, he can play for $n$ days. In other words, among these $n$ days, for any two different days, there exists at least one type of toy for which the selected quantity is different. The empty selection is also allowed. Emma does not want to compute the answer herself, so she leaves this problem to you. You need to tell her all possible total numbers of toys Johnny could have.

Input Format

The input contains only one integer $n$.

Output Format

The first line outputs an integer $r$, meaning there are $r$ possible total numbers of toys Johnny could have. The next line outputs $r$ increasing integers, each representing a possible total number of toys Johnny could have.

Explanation/Hint

For $100\%$ of the testdata, $1 \le n \le 10^9$. ----- **Problem translation by @StudyFather.** Translated by ChatGPT 5