Problem Description

You will get q commands: SET x, GET. Keep a single variable (starts EMPTY). GET prints value or EMPTY.

Input Format

First line q. Next q lines commands.

Output Format

Outputs for each GET.

Sample Test Case

Input:
6 GET SET 10 GET SET -3 GET GET
Output:
EMPTY 10 -3 -3

Constraints

q

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next