s = list(input()) print(sum([int(i) for i in s if i.isdigit()]))