import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; class Main { public static void main(String[] args) { new Main().run(); } boolean palindrome(String str) { char[] cs=str.toCharArray(); int s=0; int t=cs.length-1; boolean ret=true; while(s<=t) { ret&=cs[s++]==cs[t--]; } return ret; } void run() { Scanner sc=new Scanner(System.in); String str=sc.next(); char[] cs=str.toCharArray(); int n=cs.length; int s=0;int t=n-1; while(s