s=input() a=0 for i in s: try: a+=int(i) except: continue print(a)