int = int(input()) sum = 0 for i in int: sum += i print(sum)