There is a contest with

participants.
During the contest, all participants will stand in a line. Every participant has a level

。
In the

-th turn, number all participants in the order. Then participants numbered between

will have a competition and the one with the maximum level will win. If two or more participants have the same maximum level, then only one of them may win. Then all losers will get out of the line, while others stand in the same order.
Now

participants have stood in a line.

events follow:
1. A new turn for

has been added to the schedule.
2. Query: if the last participant has a level of

and he/she can choose the position to stand at, how many turns he/she can
definitely win.
Note that:
1. If the last participant is not in

, then he/she is never considered to win in this turn.
2. If in a turn there are two or more participants with the same maximum level, the last participant may lose (not
definitely win).