Sort the points
Very easy
Execution time limit is 3 seconds
Runtime memory usage limit is 128 megabytes
The coordinates of points are given on a plane. Print them in increasing order of sum of coordinates. In the case of equal sum of point coordinates sort the points in increasing order of abscissa.
Input
Each line contains the pair of numbers — the coordinates of one point. The number of dots does not exceed .
Output
Print the points coordinates in ascending order of the sum of coordinates. Print the coordinates of each point on a separate line.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 4K
Acceptance rate 45%