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