import java.util.*;
import java.io.*;
class Huiwen
{
public static void main(String args[])
{
System.out.println("请输入一个字符串:");
Scanner in=new Scanner(System.in);
String s=in.nextLine();
in.close();
StringBuffer m=new StringBuffer(s);
m.reverse();
String n=m.toString();
if(n.equals(s))
System.out.println(s+"是回文");
else
System.out.println(s+"不是回文");
}//end main
}//end class