Several machines were working in the workshop. After reconstruction, the number of machines decreased, and the percentage by which the number of machines decreased turned out to be equal to the number of remaining machines. What was the smallest number of machines that could have been in the workshop before the reconstruction?

Let's think step by step and output the final answer within \boxed{}.
user