The first line of the input contains two integers![]()
--- The number of operations and the number of questions.
The nextlines each line contains two integers
![]()
--- the operation type and the number.
The nextlines each line contains one integer
![]()
--- The number
gives you.
Outputlines --- for each
, you should output which
![]()
you choose initially that
is maximize possible.
.