Cindy has 3 empty bottles M, N and P. She poured an equal amount of water into each of them. After that, 12 of M was filled with water, 23 of N was filled with water and 13 of P was filled with water. What is the ratio of the capacity of flask M to flask N to flask P?