public class P {
public static void main(String[] args) {
java.util.Scanner sc = new java.util.Scanner(System.in);
while (sc.hasNext()) {
String s1 = sc.nextLine();
String s2 = "";
for (int i = (s1.length()); i >= 1; i--) {
s2 += s1.substring(i);
}
boolean a = s1.equals(s2);
if (a) {
System.out.println("yes");
} else {
System.out.println("no");
}
}
}
}
public class P {
public static void main(String[] args) {
java.util.Scanner sc = new java.util.Scanner(System.in);
while (sc.hasNext()) {
String s1 = sc.nextLine();
String s2 = "";
for (int i = (s1.length()); i >= 1; i--) {
s2 += s1.substring(i);
}
boolean a = s1.equals(s2);
if (a) {
System.out.println("yes");
} else {
System.out.println("no");
}
}
}
}
你的 s1.substring(i)