LearnPy Hub
← Dictionaries problems
Medium

Word-by-Word Translation

Read n lines of english bangla pairs, then a sentence. Print the sentence with each known word translated and unknown words left as they are.

Input

n, the pairs, then a sentence.

Output

One line.

Sample 1

Input
2
rice bhat
water pani
I want rice and water
Output
I want bhat and pani

Sample 2

Input
1
hello salam
hello world
Output
salam world
solution.py
Output appears here
Word-by-Word Translation · Python practice problem · LearnPy Hub