s = list(map(int, input())) x = 0 for i in s: if i != 0: x += i else: x += 10 print(x)