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