s = input() l = list(s) t = 0 for i in l: try: n = int(i) t += n except: continue print(t)