print sum(int(i) for i in raw_input() if i.isdigit())