For each positive integer n, let s(n) denote the sum of the digits of n. We call a number nifty if it can be expressed as n−s(n) for some positive integer n.
How many positive integers less than 10 000 are nifty?
Your answer seems reasonable.
Find out if you're right!