def main(): S = input() score = 0 for s in S: i = int(s) if not i: score += 10 else: score += i print(score) main()