public class Mytest02 {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
String str = sc.next();
String reg = "[A-Z]*";
String reg2 = "[1-9]*";
String reg4 = "[1-9]{2}";
if(str.matches(reg)){
char[] a = str.toCharArray();
for(int i=0;i<a.length;i++){
System.out.print((int)(a[i]-64));
}
}
else if(str.matches(reg2)){
char[] a = str.toCharArray();
for(int j=0;j<a.length;j++){
int g = Integer.valueOf(String.valueOf(a[j])).intValue()+64;
System.out.print((char)g);
}
if(str.matches(reg4)){
int v = Integer.valueOf(str).intValue()+64;
System.out.println("或者"+(char)v);
}
}
}
}