One evening, Eduardo was feeling hungry and decided to order a delivery of his favorite food: Shawarma. Upon opening the delivery app and selecting his favorite restaurant, Eduardo noticed a new intriguing option on the menu: the Hawarma. Although it seemed like a typo, he found out that it was a legitimate option. In the item's description, the restaurant had written: "Order the Hawarma, if you can." Curious, Eduardo continued, provided the delivery address, selected the payment method, and when everything seemed to be going smoothly, he encountered the following message:
Determine all values $$$a$$$ for which $$$f(a) = a$$$
The truth is that, at this point, most people look and think "What a prank!" and end up ordering something else. But not Eduardo: motivated by the challenge and curiosity, he won't give up on the Hawarma. Suppose you are Eduardo, inform how many values satisfy the condition for a certain value of $$$N$$$ and what those values are.
The input consists of a single line containing an integer $$$N$$$ $$$(-300 \le N \le 300, N \ne 0)$$$.
The output should consist of two lines. Print on the first line the quantity $$$K$$$ of values that satisfy the condition. On the second line, print the $$$K$$$ values separated by spaces. You may print the values in any order. It is guaranteed that the quantity of values that satisfy the condition for a given value of $$$N$$$ does not exceed $$$10^4$$$.
3
3 -15 0 6
In the example, we have $$$N = 3$$$, so our function $$$f$$$ is:
We have $$$K=3$$$ values of $$$a$$$ such that $$$f(a)=a$$$. They are: