Everyone knows the story of how the forest dwellers measured the length of the Boa in parrots. Now, they want to try it again. This time, they want to use the largest parrots available so that they need as few as possible. While they will do the measuring themselves, selecting the largest parrot from a group is not easy, so they need your help.
Your task is to determine the length of the largest parrot within a specified segment (since not all parrots wish to participate in this entertaining activity), and to count how many parrots in that segment have this maximum length.
The first line contains the integer (1 \le N \le 10^9) — the number of parrots. Initially, all parrots have a length of centimeters. The second line contains the integer (1 \le M \le 10^5) — the number of queries.
Each query contains three integers: , , . - If x = 1, you must output two numbers on a separate line: the maximum length of a parrot in the segment [l; r], and the number of parrots with that maximum length in the same segment. It is guaranteed that [l; r] is a valid subsegment of the current parrot sequence. - If x = 2, the length of the parrot at position changes and now becomes . It is guaranteed that the parrot at position exists, and that does not exceed 2 \cdot 10^9.
For each query where x = 1, output two numbers — the answer for the query.
Example 1