def int_possible(letter): try: return int(letter) except ValueError: return 0 S = input() print(sum(map(int_possible, S)))