Wine and water

While I was talking to a chemist one day, he set me this interesting problem: “I decided to mix some wine spirits and water. I had two bottles containing ten liters of each. I poured just a quarter of a liter of spirits into the water and shook them up. You can see clearly that the mixture was forty to one. Now I thought that I should have the same quantity of fluid in both the bottles, and so I poured back a quarter of a liter of the mixture into the bottle containing water”. Can you tell what proportion of spirits to water did the spirits of wine bottle then contain?