public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String line = "";
		StringBuilder out = new StringBuilder();
		fillMap();
		while ((line = in.readLine()) != null && line.length() != 0) {
			char[] sentence = line.toCharArray();
			for (int i = 0; i < sentence.length; i++) 
				out.append(map.get(sentence[i]));
			out.append("\n");
		}
		System.out.print(out);
	}