N = input() l = list(N) score = 0 for i in range(len(l)): if int(l[i]) == 0: score += 10 else: score += int(l[i]) print (score)