s=input() sum=0 for c in s: if c.isdecimal(): sum+=int(c) print(sum)