Sorting Points - 1#198

Sorting Points - 1

3 seconds
128 megabytes
Easy (≈1000)

Coordinates of points are given on a plane. Sort these points in ascending order of the sum of their coordinates. If the sums are equal, then sort in ascending order based on the abscissa (x-coordinate). Use the vector003cpair003cint, int003e 003e structure.

Input

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

Output

Output the coordinates of the points sorted by the sum of the coordinates, each on a separate line.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading