Solve problem "Dictionary of synonyms" online - Learn Python 3 - Snakify

Problem «Dictionary of synonyms» (Easy)


Statement

You are given a dictionary consisting of word pairs. Every word is a synonym the other word in its pair. All the words in the dictionary are different.

After the dictionary there's one more word given. Find a synonym for him.


In all the problems input the data using input() and print the result using print().



Saved solutions

Tests

Input Correct answer Result
3
Hello Hi
Bye Goodbye
List Array
Goodbye
Bye
1
beep Car
Car
beep
1
1234 4321
1234
4321
10
a 1
b 2
c 3
d 4
e 5
f 6
g 7
h 8
i 9
j 10
e
5
10
a 1
b 2
c 3
d 4
e 5
f 6
g 7
h 8
i 9
j 10
5
e
10
95UUSA4P3K 140YAZQF1W2
JIGCEL82Y3BXJ 277WMID9GFAWGC
X36U1924TQ GUDPNJ60NR3A
TR7JOPXQ0JK64CM O6BJSY7MHMAI8S
17HZOQO20CDQ1UG VVIPAVTVY202R
8T1A0XRRKKXEV 7L2UKWCJ917G1Q
WLPOJYRN0G3MC 5QWJPM4FG58
Z8TN35IQAF GXUPQY7I3AJCX3
5F382242HD25Q 3IV9JL29DNP64
KZWNAOSV8H8APVF LDAIALO4YMXE7
WLPOJYRN0G3MC
5QWJPM4FG58