import java.util.*;
// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
public static void main(String[] args) {
Map<String, String> map = new HashMap<>();
map.put("1", "1");
map.put("a", "2");
map.put("b", "2");
map.put("c", "2");
map.put("d", "3");
map.put("e", "3");
map.put("f", "3");
map.put("g", "4");
map.put("h", "4");
map.put("i", "4");
map.put("j", "5");
map.put("k", "5");
map.put("l", "5");
map.put("m", "6");
map.put("n", "6");
map.put("o", "6");
map.put("p", "7");
map.put("q", "7");
map.put("r", "7");
map.put("s", "7");
map.put("t", "8");
map.put("u", "8");
map.put("v", "8");
map.put("w", "9");
map.put("x", "9");
map.put("y", "9");
map.put("z", "9");
map.put("0", "0");
Scanner sc = new Scanner(System.in);
String str = sc.nextLine();
char[] chars = str.toCharArray();
String endStr = "";
for(char c:chars){
if(c >= 'a' && c <= 'z'){
endStr += map.get(c + "");
}else if(c >= 'A' && c <= 'Y'){
endStr += (char)(c + 32 +1);
}else if(c == 'Z'){
endStr += 'a';
}else{
endStr += c;
}
}
System.out.print(endStr);
}
}