You have a 109×109 square magnetic board with the origin of the coordinate system in the lower-left corner. There are n magnets on the board, numbered from 1 to n. Each magnet is an 1×1 square. Initially, the magnets are positioned in such way that the lower right corner of the i-th magnet has the coordinates (i,0).

Example of the initial state for n=5
You are receiving q queries of two types:
Below are the board states for n=6 and the series of first type queries (l_1=2,r_1=5), (l_2=3,r_2=4), (l_3=2,r_3=3), (l_4=6,r_4=6).

Initial state for n=6.

After processing a query of the first type (l_1=2,r_1=5).

After processing a query of the first type (l_2=3,r_2=4).

After processing a query of the first type (l_3=2,r_3=3).

After processing a query of the first type (l_4=6,r_4=6).
For each query of type 2 you should output the coordinates of the lower right corner of the magnet with the corresponding number.
The first line contains two integers n and q (1≤n,q≤2⋅105) --- the number of magnets on the board and the number of queries, respectively.
Each of the following q lines contains one query of either type 1 or type 2. A type 1 query consists of 3 integers 1 l r (1≤l≤r≤n), a type 2 query consists of 2 integers 2 j (1≤j≤n).
For each query of the type 2 output x and y --- coordinates of the lower right corner of the magnet with the number j at the moment of processing the corresponding query.