#coding: utf-8 ##yuki_289 s=raw_input() ls=list(s) n=0 for i in xrange(len(ls)): if ls[i].isdigit()==True: n+=int(ls[i]) print n