import strutils let S = stdin.readLine var cnt = 0 for v in S: try: cnt += ($v).parseInt except: discard echo cnt