print(sum([int(s) for s in input()[::1] if s.isdigit()]))