S = input().strip() print(sum([int(i) for i in S if i.isdecimal()]))