babelfish - bradendubois/competitive-programming GitHub Wiki
Babelfish
ID: babelfish
Difficulty: 2.5
CPU Time: 3 seconds
Memory: 1024 MB
Solution
For this, just take each line (before the blank line) and map the second word in the line to the first word. Then, reading each line after the blank line, if the line is in the mapping, output its result, otherwise "eh".