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