S = input() print(sum(int(i) for i in S) + 10*S.count('0'))