print(sum(int(s) for s in input() if s.isdigit()))