1. 

/**
* Angewandte Mathematik, SS09, IFB 2C
* ACM Problem #10282 (Babelfish)
* Link: http://icpcres.ecs.baylor.edu/onlinejudge/external/102/10282.html
*
* @author Christian Posselt
* @author Jonathan Schubert
*
*
* @version 1.0, 04/07/2009
*
* Status : Accepted
* Runtime: 0.990
*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.StringTokenizer;


class Main
{
public static void main(String[] args) throws IOException
{
BufferedReader Reader = new BufferedReader(new InputStreamReader(System.in));
StringBuilder builder = new StringBuilder();
HashMap<String,String> dic = new HashMap<String,String>();

while(true)
{
String line = Reader.readLine();
if(line == null || line.length()== 0)
break;

//Read dictionary.
StringTokenizer t = new StringTokenizer(line);
String eng = t.nextToken();
String foo = t.nextToken();
dic.put(foo,eng);
}

while(true)
{
//Search User input in Hashmap and write on screen translation for user's word
String line = Reader.readLine();
if(line == null)
break;
if(!dic.containsKey(line))
builder.append("eh");
else
builder.append(dic.get(line));
builder.append("\n");

}
System.out.print(builder.toString());
}
}