N = [int(x) for x in list(input())] score = 0 for x in N: score = score + x score = score + 10*N.count(0) print(score)