We define a ‘self-number’ denoted by d(n), which is a function that adds n and its each digit.
For example, d(75) = 75 + 7 + 5 = 87.
We can start from this number to create an infinite series such as n, d(n), d(d(n)), … For example, if you start with 33, the next number is 33 + 3 + 3 = 39, 39 + 3 + 9 = 51, and 51 + 5 + 1 = 57.
This way we can make the following sequence: 33, 39, 51, 57, 69, 84, 96, 111, 114, 120, 123, 129, 141, ...
Given a natural number N, write a program that prints the self-numbers less than 5N.