#coding=UTF-8 suu='0123456789' ans=0 S=input() for moji in S: if moji in suu: ans=ans+int(moji) print(ans)