분해합
설명 x
n = int(input()) answer = 0 for i in range(1, n + 1): com = i string = str(i) for x in string: com += int(x) if com == n: answer = i break print(answer)