403791: GYM101306 D Translation
Description
Martians use the English alphabet to communicate. However, they have an entirely different language, but it’s based on a one-to-one (bijective) mapping of letters from Martian to English. Be careful though, lower-case and upper-case letters in English aren’t necessarily the same in Martian. For example, the word "CARS" in Martian translates to "Unil" in English, whereas the word "cars" in Martian translates to "EPFL".
The Martians have invaded Earth! But, we have intercepted their communications. Help us translate their messages to English.
InputThe first line of the input contains an integer n (1 ≤ n ≤ 100).
The second line contains a sentence in Martian, consisting of n space-separated words each consisting of lower-case and upper-case English letters. The total number of letters in the sentence is at most 105.
OutputPrint, on a single line, n space-separated words representing the English translation of the sentence.
Do not print any leading or trailing spaces, and end your output with a newline character.
ExamplesInput1Output
CARS
UnilInput
1Output
cars
EPFLInput
3Output
IuVEJxTXs UvOHhng yZKfAYmaqolM
vpVZzBNtL SCubWma ocIYneAPqxDsInput
3Output
NtGQibw djPrCpek FWzL
hRkMGgJ fHrFUQTj XOwdInput
3Output
aySBaPyb RM gzYMynY
PolyProg is awesome