import sequtils,strutils var s = stdin.readline a : int for c in s: if '0' <= c and c <= '9': a += ord(c )- ord('0') echo a