s = input() x = 0 for i in range(9): if int(s[i]) != 0: x += int(s[i]) else: x += 10 print(x)