ans=0 num=list(input()) for i in num: try: ans+=int(i) except: pass print(ans)