S=input() num=0 for i in str(S): if i.isdigit(): j=int(i) num+=j print(num)