There are n integer points (x,y,z) on a 3D coordinate system. Sort them in ascending order by x, then by y (if points have the same value of x), and then by z (if points have the same value of x and y).
### Input
- The first line contains an integer n.
- Each line in the next n lines contains 3 integers x,y,z.
### Output
- Print n points after sorting.
### Constraints
- 1≤n≤100000.
- 1≤x,y,z≤109.
### Example
Input:
3343243216
Output:
216243343