Codeforces Round 441 (Div. 1, by Moscow Team Olympiad)
A
Classroom Watch
Codeforces
1200
原题
←B →
翻译中…

Eighth-grader Vova is on duty today in the class. After classes, he went into the office to wash the board, and found on it the number $*n*$. He asked what is this number and the teacher of mathematics Inna Petrovna answered Vova that $*n*$ is the answer to the arithmetic task for first-graders. In the textbook, a certain positive integer $*x*$ was given. The task was to add $*x*$ to the sum of the digits of the number $*x*$ written in decimal numeral system.

翻译中…

Since the number $*n*$ on the board was small, Vova quickly guessed which $*x*$ could be in the textbook. Now he wants to get a program which will search for arbitrary values of the number $*n*$ for all suitable values of $*x*$ or determine that such $*x*$ does not exist. Write such a program for Vova.

翻译中…

Input

翻译中…

The first line contains integer $*n*$ ($1 ≤ *n* ≤ 10^{9}$).

翻译中…

Output

翻译中…

In the first line print one integer $*k*$ — number of different values of $*x*$ satisfying the condition.

翻译中…

In next $*k*$ lines print these values in ascending order.

翻译中…

Note

翻译中…

In the first test case $*x* = 15$ there is only one variant: $15 + 1 + 5 = 21$.

翻译中…

In the second test case there are no such $*x*$.

翻译中…

样例

Input #1
21
Output #1
1
15
InputCopy OutputCopy
Input #2
20
Output #2
0
InputCopy OutputCopy
题目信息
题号
875A
时间限制
1 s
内存限制
512 MB
标签
暴力
数学

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。