S = list(input()) n = [0,1,2,3,4,5,6,7,8,9] i,num = 0,0 for i in range(len(S)): s = S[i] if s.isnumeric() == True: num = int(s) + num print(num)