def intt(o): try: a = int(o) except ValueError: a = 0 return a sum_s = sum(list(map(intt, input()))) print(sum_s)