eolymp
bolt
Try our new interface for solving problems
Problems

Three digit numbers

Three digit numbers

Find all three digit numbers with sum of digits equals to $n$. \InputFile One integer $n~(0 \le n \le 28)$. \OutputFile Print in the first line the number of found three digit numbers. In the next lines print these numbers in increasing order.
Time limit 1 second
Memory limit 128 MiB
Input example #1
3
Output example #1
6
102
111
120
201
210
300