Problem Description

You will receive q commands on a nested dictionary: SET path value, GET path. Path is dot separated like a.b.c. For GET output value if exists else NOT FOUND.

Input Format

First line q. Next q lines commands.

Output Format

Outputs for GET.

Sample Test Case

Input:
6 SET user.name Ravi SET user.age 20 GET user.name GET user.city SET user.city Delhi GET user.city
Output:
Ravi NOT FOUND Delhi

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next