S=str(input()) cnt=0 for i in S: try: int(i) except ValueError: continue else: cnt+=int(i) print(cnt)