
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scn  = new Scanner(System.in);
        strong_palindrome(scn.next());
    }
    static  void  strong_palindrome(String word){

        if(palindrome(word) != word){
            System.out.println("No");
            return;
        }
        String fp = word.substring(0, (word.length()-1)/2);
        String sp = word.substring((word.length()-1)/2+1);
        if(palindrome(fp) != fp || palindrome(sp) != sp){
            System.out.println("No");
            return;
        }
        System.out.println("Yes");

    }
    static String palindrome(String word){
        for(int i = word.length()-1; i >= 0; i--){
            if(word.charAt(i) != word.charAt(word.length()-1-i)){
                return "";
            }
        }
        return  word;
    }

}

/tmp/hf-datasets-cache/medium/datasets/42704881117311-config-parquet-and-info-qiankunmu-Project_CodeNet-896c9d36/hub/datasets--qiankunmu--Project_CodeNet_Python800_and_Java250/snapshots/c899fde44a77ba1cc14973ed3de064e4ff3aadc7/Project_CodeNet_Java250.tar.gz