S=list(map(int,list(input()))) zero=S.count(0) print(sum(S)+zero*10)