print(sum(map(lambda x: int(x) if x != '0' else 10, list(input()))))