def conv(text: str) -> int: try: return int(text) except Exception: return 0 print(sum([ conv(x) for x in input() ]))