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