st=input() cnt=0 for i in range(len(st)): if st[i].isdigit(): cnt+=int(st[i]) print(cnt)