print sum(int(c) if c.isdigit() else 0 for c in raw_input())