S = input() result = 0 for i in range(len(S)): try: result += int(S[i]) except ValueError: continue print(result)