l = [] for i in list(input()): if i.isdigit() == True: l.append(int(i)) print(sum(l))