import java.io.*;//还有这个,编译时提示说“未使用导入”,why???????
 class SimpleInput 
 {
 static String readString(){ 
 BufferedReader br=new  BufferedReader(new InputStreamReader(System.in),1);
 String string="";
 try{
string=br.readLine(); }catch(IOException ex){
 System.out.println(ex);
 }     
 return string;
 }
public static int readInt(){
    return Integer.parseInt(readString());
}
}
class Test{
int x;
Test(int a){
    x=a;
    
}
void show(){
    System.out.println("X的逆序数为:");
    int s;
    while(x>0){
        s=x%10;
        x=x/10;
        System.out.print(x);
    }
}
}
    public class Te {    
    public static void main(String[] args) {
         int value;
         value=SimpleInput.readInt();
         Test t=new Test(value);
         t.show();
    }
}