import java.io.*; class ProgClub2 { public static void main(String[] args) throws IOException { BufferedReader fin = new BufferedReader( new FileReader("ProgClub2.txt") ); for (int rep = 0; rep < 1; rep++) { main(fin); } fin.close(); } static final String set1 = "ABCDEFGHIJKLMNOP"; static final String set2 = "QRSTUVWXYZKLMNOP"; public static void main(BufferedReader fin) throws IOException { String input = fin.readLine().toUpperCase(); String step2 = ""; int temp; for (int i = 0; i < input.length(); i++) { step2 += toHex(((temp = set1.indexOf(input.charAt(i))) > -1 ? temp : set2.indexOf(input.charAt(i)))).toUpperCase(); } String step1 = ""; System.out.println(step2); } static int toint (String hex) { return Integer.parseInt(hex, 16); } static String toHex(int n) { return Integer.toHexString(n); } }