#coding: UTF-8 import sys import re import itertools from collections import deque ### defs ### ### main ### S = sys.stdin.readline().strip('\n') ans=0 for c in S: if(c.isdigit()): ans += int(c) print(ans)