A swimming pool has a capacity of 1,386 cubic feet. One gallon of water will fill 231 cubic inches of space. How many gallons of water will it take to fill the entire pool? (Hint: Convert the capacity of the pool to cubic inches first.)