s = input() sum = 0 for c in s: x = int(c) if x == 0: sum += 10 else: sum += x print(sum)