s = list(input()) n='123456789' ans=0 for r in s: if r in n: ans+=int(r) print(ans)