print(sum([int(x) for x in list(input())]))