S = input() total = 0 for i in S: if i.isdigit(): total+=int(i) else: continue print(total)