You are given points where . Print the points in ascending order with respect to . If there is more than one point with the same value, then print the point that contains the larger value first.
Input format
Output format
Print the points in the same order illustrated in the question. The format of the output must be, " " without quotes. Each point must be printed in a new line.
Constraints
First we sort the points according to the increasing X co-ordinate but as (3,6) and (3,5) have the same X co-ordinate we place (3,6) above (3,5) because it has a greater Y co-ordinate.