print sum(int(c) for c in raw_input() if c in "0123456789")