S=input() ans=0 for i in S: if i in "1234567890": ans+=int(i) print(ans)