s=input() ans=0 for i in s: try: ans += int(i) except: continue print(ans)