From a barrel, we pour out 4 liters of wine and replace it with 4 liters of water. From the resulting mixture, we again pour out 4 liters and replace it with 4 liters of water. We repeat this process a total of three times, and in the final result, there is 2.5 liters more water than wine. How many liters of wine were originally in the barrel?