n=input() score=0 for i in range(9): if n[i]=="0": score+=10 else: score=score+int(n[i]) print(score)