A leak in the bottom of a tank can empty the full tank in 8 hours. An inlet pipe fills water at the rate of 6 liters a minute. When the tank is full, the inlet is opened and due to the leak, the tank is empty in 12 hours. How many liters does the cistern hold?