Problem B
Braincutter's Association
Languages
en
is
Part of the video game Braincutter’s Association is keeping track of employees. There’s always a lot of new recruits and a similar number of employees who... are no longer fit to work. They have different levels of competence at various tasks and we boil that down to two numbers, their constitution and their discretion. When finding a suitable employee for a particular job it’s often necessary to keep one of these values constrained to a particular range of values. In this situation it can be good to know what range the other value will be constrained to as a result when considering all employees.
Input
The first line of the input contains one integer
Output
For each query of type
Sample Input 1 | Sample Output 1 |
---|---|
10 1 4 4 1 2 6 1 6 2 3 4 6 4 2 4 3 3 5 2 4 4 3 3 5 2 2 6 3 1 6 |
2 4 4 6 4 4 Enginn! 2 2 |