16 lines
203 B
Python
16 lines
203 B
Python
n = int(input())
|
|
|
|
T = True
|
|
i = n
|
|
while T :
|
|
i = str(i)
|
|
div = 0
|
|
for j in i:
|
|
div = int(j) + div
|
|
i = int(i)
|
|
if int(i)%div == 0:
|
|
T = False
|
|
else:
|
|
i +=1
|
|
print(i)
|