A warehouse contains 185 boxes of the same size. Each box contains at least 64 oranges and at most 89 oranges. Boxes containing the same number of ranges are stacked one on top of another in their own stack. Not all of the stacks have the same number of boxes. The largest stack has X boxes. What is the smallest possible value of X?