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