L=input() M=0 for i in L: try: M+=int(i) except ValueError: M+0 print(M)