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