S = map(int, input()) print(sum(10 if s == 0 else s for s in S))