The answer for this problem is simple
if the sum of the digits is 2021
the smallest number would be a number, followed with all nines
2021/9=224 remandier 5, so the number is
599999999 ect
but because we are trying to find the smallest number,
there will be 224 9s
so, the answer is 224
lol :)