S = raw_input() s = 0 for c in S: try: s += int(c) except: pass print s