s = input() print(sum([int(i) if i != '0' else 10 for i in s]))