S = list(str(input().rstrip())) res = 0 for i in range(len(S)): TF = S[i].isdecimal() if TF: res += int(S[i]) else: pass print(res)