# No.656 ゴルフ s = input() score = 0 for i in s: if i == '0': score += 10 else: score += int(i) print(score)