S = input() X = 0 for s in S: if s.isdigit() == True: X += int(s) print(X)