n = list(input()) x = 0 for i in n: if i != '0': x += int(i) else: x += 10 print(x)