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