Code:
//package strings;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
String x = in.nextLine();
StringBuilder sb = new StringBuilder(x);
boolean y =isPalindrome(sb);
System.out.println(y);
}
public static boolean isPalindrome(StringBuilder sb1)
{
if(sb1.equals(sb1.reverse()))
return true;
return false;
}
}