Files
CodeObject/zeta/py/completed/2231.py
2025-05-07 04:44:30 +09:00

11 lines
183 B
Python

N = int(input())
def seps(n):
return n + sum(map(int, str(n)))
for i in range(1 if N < 101 else N-100, N):
if seps(i) == N:
print(i)
break
else:
print(0)