Sort the points by coordinates
Very easy
Execution time limit is 3 seconds
Runtime memory usage limit is 128 megabytes
The coordinattes of points are given on a plane. Print them in increasing order of their abscissa. In the case of a tie, sort the points in decreasing order of ordinate.
Input
Each line contains the pair of numbers — the coordinates of one point.
Output
Print the points in the required order. Print the coordinates of each point on a separate line.
Examples
Input #1
Answer #1
Submissions 2K
Acceptance rate 46%