def sumnum(n):
lst = []
x = 1
if n == 0: return [0]
if n < 0: raise ValueError('Please n >= 0 number')
while True:
if n == sum([int(i) for i in str(x)]):
if len(lst) < 5: lst.append(x)
else: return lst
x += 1
print(sumnum(12))
ZGVmIHN1bW51bShuKToKCWxzdCA9IFtdCgl4ID0gMQoJCglpZiBuID09IDA6IHJldHVybiBbMF0KCWlmIG4gPCAwOiByYWlzZSBWYWx1ZUVycm9yKCdQbGVhc2UgbiA+PSAwIG51bWJlcicpCgl3aGlsZSBUcnVlOgoJCWlmIG4gPT0gc3VtKFtpbnQoaSkgZm9yIGkgaW4gc3RyKHgpXSk6CgkJCWlmIGxlbihsc3QpIDwgNTogbHN0LmFwcGVuZCh4KQoJCQllbHNlOiByZXR1cm4gbHN0CgkJeCArPSAxCgkJCQpwcmludChzdW1udW0oMTIpKQ==