A = ["1","2","3","4","5","6","7","8","9"] S = list(input()) SUM = 0 for i in range(len(S)): if S[i] in A: SUM += int(S[i]) print(SUM)