N = list(map(int, input())) print(abs(len(N)-10))