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