Problem Description

Commands: INSERT x, FIND x. Print YES/NO for FIND.

Input Format

First line q. Next q lines.

Output Format

Outputs for FIND.

Sample Test Case

Input:
6 INSERT 5 INSERT 2 INSERT 8 FIND 2 FIND 7 FIND 8
Output:
YES NO YES

Constraints

q

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next