A container was 1/2 filled with water. When 200 ml of water was poured out, it became 1/3 full. Find the capacity of the container in milliliters.