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