s=raw_input() a=0 for i in xrange(len(s)): if s[i].isdigit(): a+=int(s[i]) print a