a = input() print(abs(10 - len(a)))