s=input() num=0 for i in s: if i.isdecimal(): num+=int(i) print(num)