r = 0 for i in input(): try: r += int(i) except: pass print(r)