l = list(input()) for i in range(len(l)): if l[int(i)] == "0": l[int(i)] = "10" print(sum(map(int,l)))