a = list(input()) score = 0 for i in a: if(i == "0"): score += 10 else: score += int(i) print(score)