LearnPy Hub
← Dictionaries problems
Easy

Phone Book

Read n, then n lines of name number, then a name to look up. Print the number, or Not found.

Input

n, n lines, then a name.

Output

A number or Not found.

Sample 1

Input
2
Mim 017
Rafi 018
Rafi
Output
018

Sample 2

Input
1
A 1
B
Output
Not found
solution.py
Output appears here
Phone Book · Python practice problem · LearnPy Hub