import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) s = read().rstrip().decode() cnt = 0 for check in s: if check.isdecimal(): cnt += int(check) print(cnt)