n = list(input()) cnt = 0 for x in n: if x == "0": p = 10 else: p = int(x) cnt += p print(cnt)