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