X, Y and Z are three partners in a partnership firm, sharing profit and loss in the ratio 2:2:1. Y retires from the firm on 31st march. His share of profit is purchased by X and Y in the ratio of 1:2. What is the gaining ratio of the remaining partners?