ans=0 for x in input(): if 48<=ord(x)<58: ans+=int(x) print(ans)