Sorting Points - 2#199

Sorting Points - 2

3 seconds
128 megabytes
Very easy (≈850)

The coordinates of points are given on a plane. Sort these points by increasing order of their x-coordinates. If the x-coordinates are the same, then order them by decreasing order of their y-coordinates. Use the vector<pair<int, int> > structure.

Input

Input consists of x, y~(0 \le x, y \le 10^9) coordinates until the end of the file. The total number of points does not exceed 10^5.

Output

Output the coordinates of the points, sorted by increasing x, and for ties, by decreasing y, on separate lines.

Examples

Example 1

Loading
Loading