S = input() s_list = [] for i in S: s_list.append(i) ans = 0 for j in s_list: if j.isalpha() == True: continue else: n = int(j) ans += n print(ans)