a=list(input()) n=0 for i in a: if i.isdigit(): n+=int(i) print(n)