Problem Statement
You are given
where is some integer, or where is some integer Imagine you start with an empty collection of numbers. When you see you should add to your collection of numbers. Every time you see you should determine the first thing less than or equal to in your collection of numbers. ## Input Format
Your first line will contain
Output Format
For each
Constraints
## Sample Cases
Input 1
Copy
7
INSERT 10
SEARCH 9
INSERT 3
INSERT 4
INSERT 8
SEARCH 3
SEARCH 7
Output 1
Copy
-1
3
4
Comments