print(sum([int(x) if x.isdecimal() else 0 for x in input()]))