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