S = input() nums = [int(i) for i in S if i.isnumeric()] print(sum(nums))