import java.util.*;
public class Main {
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	String s = sc.next();
  	int l = s.length();
  	if(l/2==0) System.exit(0);
  	if((l<3)||(99<l)) System.exit(0);
  
  	if (kaibunCheck(s)) {
      if (kaibunCheck(s.substring(0,(l-1)/2))) {
        if (kaibunCheck(s.substring((l+3)/2-1,l))) {
        	System.out.println("Yes");
          	System.exit(0);
      	}
      }
    }
      System.out.println("No");
	}
  
public static boolean kaibunCheck(String str){
  	int len = str.length();
  	char[] c = new char[len];
  	for(int i=0;i<len;i++){
      c[i] = str.charAt(i);
    }
  	for(int j=0;j<len;j++){
      if(c[j]!=c[len-j-1]) return false;
    }
  	return true;
}
} import java.util.*; util.* java public class Main {
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	String s = sc.next();
  	int l = s.length();
  	if(l/2==0) System.exit(0);
  	if((l<3)||(99<l)) System.exit(0);
  
  	if (kaibunCheck(s)) {
      if (kaibunCheck(s.substring(0,(l-1)/2))) {
        if (kaibunCheck(s.substring((l+3)/2-1,l))) {
        	System.out.println("Yes");
          	System.exit(0);
      	}
      }
    }
      System.out.println("No");
	}
  
public static boolean kaibunCheck(String str){
  	int len = str.length();
  	char[] c = new char[len];
  	for(int i=0;i<len;i++){
      c[i] = str.charAt(i);
    }
  	for(int j=0;j<len;j++){
      if(c[j]!=c[len-j-1]) return false;
    }
  	return true;
}
} Main public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	String s = sc.next();
  	int l = s.length();
  	if(l/2==0) System.exit(0);
  	if((l<3)||(99<l)) System.exit(0);
  
  	if (kaibunCheck(s)) {
      if (kaibunCheck(s.substring(0,(l-1)/2))) {
        if (kaibunCheck(s.substring((l+3)/2-1,l))) {
        	System.out.println("Yes");
          	System.exit(0);
      	}
      }
    }
      System.out.println("No");
	} main {
	Scanner sc = new Scanner(System.in);
	String s = sc.next();
  	int l = s.length();
  	if(l/2==0) System.exit(0);
  	if((l<3)||(99<l)) System.exit(0);
  
  	if (kaibunCheck(s)) {
      if (kaibunCheck(s.substring(0,(l-1)/2))) {
        if (kaibunCheck(s.substring((l+3)/2-1,l))) {
        	System.out.println("Yes");
          	System.exit(0);
      	}
      }
    }
      System.out.println("No");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int l = s.length(); l s.length() s.length s if(l/2==0) System.exit(0); l/2==0 l/2 l 2 0 System.exit(0) System.exit System 0 if((l<3)||(99<l)) System.exit(0); (l<3)||(99<l) (l<3) l 3 (99<l) 99 l System.exit(0) System.exit System 0 if (kaibunCheck(s)) {
      if (kaibunCheck(s.substring(0,(l-1)/2))) {
        if (kaibunCheck(s.substring((l+3)/2-1,l))) {
        	System.out.println("Yes");
          	System.exit(0);
      	}
      }
    } kaibunCheck(s) kaibunCheck s {
      if (kaibunCheck(s.substring(0,(l-1)/2))) {
        if (kaibunCheck(s.substring((l+3)/2-1,l))) {
        	System.out.println("Yes");
          	System.exit(0);
      	}
      }
    } if (kaibunCheck(s.substring(0,(l-1)/2))) {
        if (kaibunCheck(s.substring((l+3)/2-1,l))) {
        	System.out.println("Yes");
          	System.exit(0);
      	}
      } kaibunCheck(s.substring(0,(l-1)/2)) kaibunCheck s.substring(0,(l-1)/2) s.substring s 0 (l-1)/2 (l-1) l 1 2 {
        if (kaibunCheck(s.substring((l+3)/2-1,l))) {
        	System.out.println("Yes");
          	System.exit(0);
      	}
      } if (kaibunCheck(s.substring((l+3)/2-1,l))) {
        	System.out.println("Yes");
          	System.exit(0);
      	} kaibunCheck(s.substring((l+3)/2-1,l)) kaibunCheck s.substring((l+3)/2-1,l) s.substring s (l+3)/2-1 (l+3)/2 (l+3) l 3 2 1 l {
        	System.out.println("Yes");
          	System.exit(0);
      	} System.out.println("Yes") System.out.println System.out System System.out "Yes" System.exit(0) System.exit System 0 System.out.println("No") System.out.println System.out System System.out "No" String[] args args public static boolean kaibunCheck(String str){
  	int len = str.length();
  	char[] c = new char[len];
  	for(int i=0;i<len;i++){
      c[i] = str.charAt(i);
    }
  	for(int j=0;j<len;j++){
      if(c[j]!=c[len-j-1]) return false;
    }
  	return true;
} kaibunCheck {
  	int len = str.length();
  	char[] c = new char[len];
  	for(int i=0;i<len;i++){
      c[i] = str.charAt(i);
    }
  	for(int j=0;j<len;j++){
      if(c[j]!=c[len-j-1]) return false;
    }
  	return true;
} int len = str.length(); len str.length() str.length str char[] c = new char[len]; c new char[len] len for(int i=0;i<len;i++){
      c[i] = str.charAt(i);
    } int i=0; int i=0; i 0 i<len i len i++ i++ i {
      c[i] = str.charAt(i);
    } {
      c[i] = str.charAt(i);
    } c[i] = str.charAt(i) c[i] c i str.charAt(i) str.charAt str i for(int j=0;j<len;j++){
      if(c[j]!=c[len-j-1]) return false;
    } int j=0; int j=0; j 0 j<len j len j++ j++ j {
      if(c[j]!=c[len-j-1]) return false;
    } {
      if(c[j]!=c[len-j-1]) return false;
    } if(c[j]!=c[len-j-1]) return false; c[j]!=c[len-j-1] c[j] c j c[len-j-1] c len-j-1 len-j-1 len j 1 return false; false return true; true String str str public class Main {
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	String s = sc.next();
  	int l = s.length();
  	if(l/2==0) System.exit(0);
  	if((l<3)||(99<l)) System.exit(0);
  
  	if (kaibunCheck(s)) {
      if (kaibunCheck(s.substring(0,(l-1)/2))) {
        if (kaibunCheck(s.substring((l+3)/2-1,l))) {
        	System.out.println("Yes");
          	System.exit(0);
      	}
      }
    }
      System.out.println("No");
	}
  
public static boolean kaibunCheck(String str){
  	int len = str.length();
  	char[] c = new char[len];
  	for(int i=0;i<len;i++){
      c[i] = str.charAt(i);
    }
  	for(int j=0;j<len;j++){
      if(c[j]!=c[len-j-1]) return false;
    }
  	return true;
}
} public class Main {
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	String s = sc.next();
  	int l = s.length();
  	if(l/2==0) System.exit(0);
  	if((l<3)||(99<l)) System.exit(0);
  
  	if (kaibunCheck(s)) {
      if (kaibunCheck(s.substring(0,(l-1)/2))) {
        if (kaibunCheck(s.substring((l+3)/2-1,l))) {
        	System.out.println("Yes");
          	System.exit(0);
      	}
      }
    }
      System.out.println("No");
	}
  
public static boolean kaibunCheck(String str){
  	int len = str.length();
  	char[] c = new char[len];
  	for(int i=0;i<len;i++){
      c[i] = str.charAt(i);
    }
  	for(int j=0;j<len;j++){
      if(c[j]!=c[len-j-1]) return false;
    }
  	return true;
}
} Main
import java.util.*;
public class Main {
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	String s = sc.next();
  	int l = s.length();
  	if(l/2==0) System.exit(0);
  	if((l<3)||(99<l)) System.exit(0);
  
  	if (kaibunCheck(s)) {
      if (kaibunCheck(s.substring(0,(l-1)/2))) {
        if (kaibunCheck(s.substring((l+3)/2-1,l))) {
        	System.out.println("Yes");
          	System.exit(0);
      	}
      }
    }
      System.out.println("No");
	}
  
public static boolean kaibunCheck(String str){
  	int len = str.length();
  	char[] c = new char[len];
  	for(int i=0;i<len;i++){
      c[i] = str.charAt(i);
    }
  	for(int j=0;j<len;j++){
      if(c[j]!=c[len-j-1]) return false;
    }
  	return true;
}
}
