import re a = input() c = 0 for i in a: if i.isdecimal(): c = c+ int(i) print(c)