import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNext()) { // 注意 while 处理多个 case
            char[] a = in.nextLine().toCharArray();
            String str = "";
            for (int i = 0; i < a.length; i++) {
                char temp = a[i];
                if ('a' <= temp && temp <= 'c') {
                    temp = '2';
                } else if ('d' <= temp && temp <= 'f') {
                    temp = '3';
                } else if ('g' <= temp && temp <= 'i') {
                    temp = '4';
                } else if ('j' <= temp && temp <= 'l') {
                    temp = '5';
                } else if ('m' <= temp && temp <= 'o') {
                    temp = '6';
                } else if ('p' <= temp && temp <= 's') {
                    temp = '7';
                } else if ('t' <= temp && temp <= 'v') {
                    temp = '8';
                } else if ('w' <= temp && temp <= 'z') {
                    temp = '9';
                } else if ('A' <= temp && temp < 'Z') {
                    temp = ++temp;
                } else if (temp == 'Z') {
                    temp = 'A';
                }
                str = str + String.valueOf(temp);
            }
            System.out.println(str.toLowerCase());
        }
    }
}