import java.util.*;


public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        StringBuilder sb1 = new StringBuilder(s);
        if(!(s.equals(sb1.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        String s2 = s.substring(0, (s.length()-1)/2);
        StringBuilder sb2 = new StringBuilder(s2);
        if(!(s2.equals(sb2.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        String s3 = s.substring(((s.length()+3)/2)-1);
        StringBuilder sb3 = new StringBuilder(s3);
        if(!(s3.equals(sb3.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        System.out.println("Yes");
	}
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        StringBuilder sb1 = new StringBuilder(s);
        if(!(s.equals(sb1.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        String s2 = s.substring(0, (s.length()-1)/2);
        StringBuilder sb2 = new StringBuilder(s2);
        if(!(s2.equals(sb2.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        String s3 = s.substring(((s.length()+3)/2)-1);
        StringBuilder sb3 = new StringBuilder(s3);
        if(!(s3.equals(sb3.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        System.out.println("Yes");
	}
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        StringBuilder sb1 = new StringBuilder(s);
        if(!(s.equals(sb1.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        String s2 = s.substring(0, (s.length()-1)/2);
        StringBuilder sb2 = new StringBuilder(s2);
        if(!(s2.equals(sb2.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        String s3 = s.substring(((s.length()+3)/2)-1);
        StringBuilder sb3 = new StringBuilder(s3);
        if(!(s3.equals(sb3.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        System.out.println("Yes");
	} main {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        StringBuilder sb1 = new StringBuilder(s);
        if(!(s.equals(sb1.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        String s2 = s.substring(0, (s.length()-1)/2);
        StringBuilder sb2 = new StringBuilder(s2);
        if(!(s2.equals(sb2.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        String s3 = s.substring(((s.length()+3)/2)-1);
        StringBuilder sb3 = new StringBuilder(s3);
        if(!(s3.equals(sb3.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        System.out.println("Yes");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc StringBuilder sb1 = new StringBuilder(s); sb1 new StringBuilder(s) if(!(s.equals(sb1.reverse().toString()))){
        	System.out.println("No");
            return;
        } !(s.equals(sb1.reverse().toString())) (s.equals(sb1.reverse().toString())) s.equals s sb1.reverse().toString() sb1.reverse().toString sb1.reverse() sb1.reverse sb1 {
        	System.out.println("No");
            return;
        } System.out.println("No") System.out.println System.out System System.out "No" return; String s2 = s.substring(0, (s.length()-1)/2); s2 s.substring(0, (s.length()-1)/2) s.substring s 0 (s.length()-1)/2 (s.length()-1) s.length() s.length s 1 2 StringBuilder sb2 = new StringBuilder(s2); sb2 new StringBuilder(s2) if(!(s2.equals(sb2.reverse().toString()))){
        	System.out.println("No");
            return;
        } !(s2.equals(sb2.reverse().toString())) (s2.equals(sb2.reverse().toString())) s2.equals s2 sb2.reverse().toString() sb2.reverse().toString sb2.reverse() sb2.reverse sb2 {
        	System.out.println("No");
            return;
        } System.out.println("No") System.out.println System.out System System.out "No" return; String s3 = s.substring(((s.length()+3)/2)-1); s3 s.substring(((s.length()+3)/2)-1) s.substring s ((s.length()+3)/2)-1 ((s.length()+3)/2) (s.length()+3) s.length() s.length s 3 2 1 StringBuilder sb3 = new StringBuilder(s3); sb3 new StringBuilder(s3) if(!(s3.equals(sb3.reverse().toString()))){
        	System.out.println("No");
            return;
        } !(s3.equals(sb3.reverse().toString())) (s3.equals(sb3.reverse().toString())) s3.equals s3 sb3.reverse().toString() sb3.reverse().toString sb3.reverse() sb3.reverse sb3 {
        	System.out.println("No");
            return;
        } System.out.println("No") System.out.println System.out System System.out "No" return; System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        StringBuilder sb1 = new StringBuilder(s);
        if(!(s.equals(sb1.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        String s2 = s.substring(0, (s.length()-1)/2);
        StringBuilder sb2 = new StringBuilder(s2);
        if(!(s2.equals(sb2.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        String s3 = s.substring(((s.length()+3)/2)-1);
        StringBuilder sb3 = new StringBuilder(s3);
        if(!(s3.equals(sb3.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        System.out.println("Yes");
	}
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        StringBuilder sb1 = new StringBuilder(s);
        if(!(s.equals(sb1.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        String s2 = s.substring(0, (s.length()-1)/2);
        StringBuilder sb2 = new StringBuilder(s2);
        if(!(s2.equals(sb2.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        String s3 = s.substring(((s.length()+3)/2)-1);
        StringBuilder sb3 = new StringBuilder(s3);
        if(!(s3.equals(sb3.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        System.out.println("Yes");
	}
} Main
import java.util.*;


public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        String s = sc.next();
        StringBuilder sb1 = new StringBuilder(s);
        if(!(s.equals(sb1.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        String s2 = s.substring(0, (s.length()-1)/2);
        StringBuilder sb2 = new StringBuilder(s2);
        if(!(s2.equals(sb2.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        String s3 = s.substring(((s.length()+3)/2)-1);
        StringBuilder sb3 = new StringBuilder(s3);
        if(!(s3.equals(sb3.reverse().toString()))){
        	System.out.println("No");
            return;
        }
        
        System.out.println("Yes");
	}
}