import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        HashMap<String, Integer> map = new HashMap<>();
        map.put("abc", 2);
        map.put("def", 3);
        map.put("ghi", 4);
        map.put("jkl", 5);
        map.put("mno", 6);
        map.put("pqrs", 7);
        map.put("tuv", 8);
        map.put("wxyz", 9);

        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < line.length(); i++) {
            char c = line.charAt(i);
            if (c >= 'a' && c <= 'z') {
                for (Map.Entry<String, Integer> entry : map.entrySet()) {
                    if (entry.getKey().contains(String.valueOf(c))) {
                        sb.append(entry.getValue());
                        break;
                    }
                }
            } else if (c >= 'A' && c <= 'Y') {
                int convert = (int) c + 33;
                sb.append((char) convert);
            } else if (c == 'Z') {
                sb.append('a');
            } else {
                sb.append(c);
            }
        }
        System.out.println(sb);
    }
}