S = input() k = 0 for i in S: if i == 0: k += 10 else: k += int(i) print(k)