import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        for(int i=0; i<s.length()/2; i++) {
            String s1 = s.substring(i, i+1);
            String s2 = s.substring(s.length() -i -1, s.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        }
        String s3 = s.substring(0,(s.length() -1) /2);
        for(int i=0; i<s3.length()/2; i++) {
            String s1 = s3.substring(i, i+1);
            String s2 = s3.substring(s3.length() -i -1, s3.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        }
        String s4 = s.substring((s.length() +1) /2, s.length());
        for(int i=0; i<s4.length()/2; i++) {
            String s1 = s4.substring(i, i+1);
            String s2 = s4.substring(s4.length() -i -1, s4.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        for(int i=0; i<s.length()/2; i++) {
            String s1 = s.substring(i, i+1);
            String s2 = s.substring(s.length() -i -1, s.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        }
        String s3 = s.substring(0,(s.length() -1) /2);
        for(int i=0; i<s3.length()/2; i++) {
            String s1 = s3.substring(i, i+1);
            String s2 = s3.substring(s3.length() -i -1, s3.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        }
        String s4 = s.substring((s.length() +1) /2, s.length());
        for(int i=0; i<s4.length()/2; i++) {
            String s1 = s4.substring(i, i+1);
            String s2 = s4.substring(s4.length() -i -1, s4.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        for(int i=0; i<s.length()/2; i++) {
            String s1 = s.substring(i, i+1);
            String s2 = s.substring(s.length() -i -1, s.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        }
        String s3 = s.substring(0,(s.length() -1) /2);
        for(int i=0; i<s3.length()/2; i++) {
            String s1 = s3.substring(i, i+1);
            String s2 = s3.substring(s3.length() -i -1, s3.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        }
        String s4 = s.substring((s.length() +1) /2, s.length());
        for(int i=0; i<s4.length()/2; i++) {
            String s1 = s4.substring(i, i+1);
            String s2 = s4.substring(s4.length() -i -1, s4.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        for(int i=0; i<s.length()/2; i++) {
            String s1 = s.substring(i, i+1);
            String s2 = s.substring(s.length() -i -1, s.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        }
        String s3 = s.substring(0,(s.length() -1) /2);
        for(int i=0; i<s3.length()/2; i++) {
            String s1 = s3.substring(i, i+1);
            String s2 = s3.substring(s3.length() -i -1, s3.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        }
        String s4 = s.substring((s.length() +1) /2, s.length());
        for(int i=0; i<s4.length()/2; i++) {
            String s1 = s4.substring(i, i+1);
            String s2 = s4.substring(s4.length() -i -1, s4.length() -i);
            if(!s1.equals(s2)) {
                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 for(int i=0; i<s.length()/2; i++) {
            String s1 = s.substring(i, i+1);
            String s2 = s.substring(s.length() -i -1, s.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        } int i=0; int i=0; i 0 i<s.length()/2 i s.length()/2 s.length() s.length s 2 i++ i++ i {
            String s1 = s.substring(i, i+1);
            String s2 = s.substring(s.length() -i -1, s.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        } {
            String s1 = s.substring(i, i+1);
            String s2 = s.substring(s.length() -i -1, s.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        } String s1 = s.substring(i, i+1); s1 s.substring(i, i+1) s.substring s i i+1 i 1 String s2 = s.substring(s.length() -i -1, s.length() -i); s2 s.substring(s.length() -i -1, s.length() -i) s.substring s s.length() -i -1 s.length() -i -1 s.length() s.length s i 1 s.length() -i s.length() s.length s i if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            } !s1.equals(s2) s1.equals(s2) s1.equals s1 s2 {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; String s3 = s.substring(0,(s.length() -1) /2); s3 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 for(int i=0; i<s3.length()/2; i++) {
            String s1 = s3.substring(i, i+1);
            String s2 = s3.substring(s3.length() -i -1, s3.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        } int i=0; int i=0; i 0 i<s3.length()/2 i s3.length()/2 s3.length() s3.length s3 2 i++ i++ i {
            String s1 = s3.substring(i, i+1);
            String s2 = s3.substring(s3.length() -i -1, s3.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        } {
            String s1 = s3.substring(i, i+1);
            String s2 = s3.substring(s3.length() -i -1, s3.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        } String s1 = s3.substring(i, i+1); s1 s3.substring(i, i+1) s3.substring s3 i i+1 i 1 String s2 = s3.substring(s3.length() -i -1, s3.length() -i); s2 s3.substring(s3.length() -i -1, s3.length() -i) s3.substring s3 s3.length() -i -1 s3.length() -i -1 s3.length() s3.length s3 i 1 s3.length() -i s3.length() s3.length s3 i if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            } !s1.equals(s2) s1.equals(s2) s1.equals s1 s2 {
                System.out.println("No");
                return;
            } System.out.println("No") System.out.println System.out System System.out "No" return; String s4 = s.substring((s.length() +1) /2, s.length()); s4 s.substring((s.length() +1) /2, s.length()) s.substring s (s.length() +1) /2 (s.length() +1) s.length() s.length s 1 2 s.length() s.length s for(int i=0; i<s4.length()/2; i++) {
            String s1 = s4.substring(i, i+1);
            String s2 = s4.substring(s4.length() -i -1, s4.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        } int i=0; int i=0; i 0 i<s4.length()/2 i s4.length()/2 s4.length() s4.length s4 2 i++ i++ i {
            String s1 = s4.substring(i, i+1);
            String s2 = s4.substring(s4.length() -i -1, s4.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        } {
            String s1 = s4.substring(i, i+1);
            String s2 = s4.substring(s4.length() -i -1, s4.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        } String s1 = s4.substring(i, i+1); s1 s4.substring(i, i+1) s4.substring s4 i i+1 i 1 String s2 = s4.substring(s4.length() -i -1, s4.length() -i); s2 s4.substring(s4.length() -i -1, s4.length() -i) s4.substring s4 s4.length() -i -1 s4.length() -i -1 s4.length() s4.length s4 i 1 s4.length() -i s4.length() s4.length s4 i if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            } !s1.equals(s2) s1.equals(s2) s1.equals s1 s2 {
                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) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        for(int i=0; i<s.length()/2; i++) {
            String s1 = s.substring(i, i+1);
            String s2 = s.substring(s.length() -i -1, s.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        }
        String s3 = s.substring(0,(s.length() -1) /2);
        for(int i=0; i<s3.length()/2; i++) {
            String s1 = s3.substring(i, i+1);
            String s2 = s3.substring(s3.length() -i -1, s3.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        }
        String s4 = s.substring((s.length() +1) /2, s.length());
        for(int i=0; i<s4.length()/2; i++) {
            String s1 = s4.substring(i, i+1);
            String s2 = s4.substring(s4.length() -i -1, s4.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        for(int i=0; i<s.length()/2; i++) {
            String s1 = s.substring(i, i+1);
            String s2 = s.substring(s.length() -i -1, s.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        }
        String s3 = s.substring(0,(s.length() -1) /2);
        for(int i=0; i<s3.length()/2; i++) {
            String s1 = s3.substring(i, i+1);
            String s2 = s3.substring(s3.length() -i -1, s3.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        }
        String s4 = s.substring((s.length() +1) /2, s.length());
        for(int i=0; i<s4.length()/2; i++) {
            String s1 = s4.substring(i, i+1);
            String s2 = s4.substring(s4.length() -i -1, s4.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        for(int i=0; i<s.length()/2; i++) {
            String s1 = s.substring(i, i+1);
            String s2 = s.substring(s.length() -i -1, s.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        }
        String s3 = s.substring(0,(s.length() -1) /2);
        for(int i=0; i<s3.length()/2; i++) {
            String s1 = s3.substring(i, i+1);
            String s2 = s3.substring(s3.length() -i -1, s3.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        }
        String s4 = s.substring((s.length() +1) /2, s.length());
        for(int i=0; i<s4.length()/2; i++) {
            String s1 = s4.substring(i, i+1);
            String s2 = s4.substring(s4.length() -i -1, s4.length() -i);
            if(!s1.equals(s2)) {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
    }
}