2058.자릿수 더하기

풀이

number = input()

total = 0
for digit in number:
    total += int(digit)
    
print(total)