Phonebook Lookup

Python Easy 3 views
Back to Questions
Next Unique Words Count Easy N

Problem Description

Read n entries of name and phone. Then one query name is provided. Output the phone if present else output NOT FOUND.

Input Format

First line n. Next n lines: name phone. Last line: queryName.

Output Format

One line answer.

Sample Test Case

Input:
3 Ravi 987 Aman 111 Neha 222 Aman
Output:
111

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Next