S = input() score = 0 for s in S: if s == "0": score += 10 else: score += int(s) print(score)