import java.util.*;
import java.io.*;
public class Main{
  public static void main(String[] args) throws Exception{
Scanner sc = new Scanner(System.in);
    String s = sc.nextLine();
    int length = s.length();
    int i = (length-1)/2-1;
    int j = (length+3)/2-1;
    boolean flag = false;
    if(isPalindrome(s,0,length-1) && isPalindrome(s,0,i) && isPalindrome(s,j,length-1)){
      System.out.println("Yes");
      flag = true;
    }  
    if(!flag){
      System.out.println("No");
    }
  
  
  
  }
  
    public static boolean isPalindrome(String s,int i,int j){
      while(i<=j){
        if(s.charAt(i)!=s.charAt(j)){
          return false;
        }
        i++;
        j--;
      
    }
      if(i>j){
        return true;
      }
    return false;
      
}
  } import java.util.*; util.* java import java.io.*; io.* java public class Main{
  public static void main(String[] args) throws Exception{
Scanner sc = new Scanner(System.in);
    String s = sc.nextLine();
    int length = s.length();
    int i = (length-1)/2-1;
    int j = (length+3)/2-1;
    boolean flag = false;
    if(isPalindrome(s,0,length-1) && isPalindrome(s,0,i) && isPalindrome(s,j,length-1)){
      System.out.println("Yes");
      flag = true;
    }  
    if(!flag){
      System.out.println("No");
    }
  
  
  
  }
  
    public static boolean isPalindrome(String s,int i,int j){
      while(i<=j){
        if(s.charAt(i)!=s.charAt(j)){
          return false;
        }
        i++;
        j--;
      
    }
      if(i>j){
        return true;
      }
    return false;
      
}
  } Main public static void main(String[] args) throws Exception{
Scanner sc = new Scanner(System.in);
    String s = sc.nextLine();
    int length = s.length();
    int i = (length-1)/2-1;
    int j = (length+3)/2-1;
    boolean flag = false;
    if(isPalindrome(s,0,length-1) && isPalindrome(s,0,i) && isPalindrome(s,j,length-1)){
      System.out.println("Yes");
      flag = true;
    }  
    if(!flag){
      System.out.println("No");
    }
  
  
  
  } main {
Scanner sc = new Scanner(System.in);
    String s = sc.nextLine();
    int length = s.length();
    int i = (length-1)/2-1;
    int j = (length+3)/2-1;
    boolean flag = false;
    if(isPalindrome(s,0,length-1) && isPalindrome(s,0,i) && isPalindrome(s,j,length-1)){
      System.out.println("Yes");
      flag = true;
    }  
    if(!flag){
      System.out.println("No");
    }
  
  
  
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc int length = s.length(); length s.length() s.length s int i = (length-1)/2-1; i (length-1)/2-1 (length-1)/2 (length-1) length 1 2 1 int j = (length+3)/2-1; j (length+3)/2-1 (length+3)/2 (length+3) length 3 2 1 boolean flag = false; flag false if(isPalindrome(s,0,length-1) && isPalindrome(s,0,i) && isPalindrome(s,j,length-1)){
      System.out.println("Yes");
      flag = true;
    } isPalindrome(s,0,length-1) && isPalindrome(s,0,i) && isPalindrome(s,j,length-1) isPalindrome(s,0,length-1) && isPalindrome(s,0,i) && isPalindrome(s,j,length-1) isPalindrome(s,0,length-1) isPalindrome s 0 length-1 length 1 isPalindrome(s,0,i) isPalindrome s 0 i isPalindrome(s,j,length-1) isPalindrome s j length-1 length 1 {
      System.out.println("Yes");
      flag = true;
    } System.out.println("Yes") System.out.println System.out System System.out "Yes" flag = true flag true if(!flag){
      System.out.println("No");
    } !flag flag {
      System.out.println("No");
    } System.out.println("No") System.out.println System.out System System.out "No" String[] args args public static boolean isPalindrome(String s,int i,int j){
      while(i<=j){
        if(s.charAt(i)!=s.charAt(j)){
          return false;
        }
        i++;
        j--;
      
    }
      if(i>j){
        return true;
      }
    return false;
      
} isPalindrome {
      while(i<=j){
        if(s.charAt(i)!=s.charAt(j)){
          return false;
        }
        i++;
        j--;
      
    }
      if(i>j){
        return true;
      }
    return false;
      
} while(i<=j){
        if(s.charAt(i)!=s.charAt(j)){
          return false;
        }
        i++;
        j--;
      
    } i<=j i j {
        if(s.charAt(i)!=s.charAt(j)){
          return false;
        }
        i++;
        j--;
      
    } if(s.charAt(i)!=s.charAt(j)){
          return false;
        } s.charAt(i)!=s.charAt(j) s.charAt(i) s.charAt s i s.charAt(j) s.charAt s j {
          return false;
        } return false; false i++ i j-- j if(i>j){
        return true;
      } i>j i j {
        return true;
      } return true; true return false; false String s s int i i int j j public class Main{
  public static void main(String[] args) throws Exception{
Scanner sc = new Scanner(System.in);
    String s = sc.nextLine();
    int length = s.length();
    int i = (length-1)/2-1;
    int j = (length+3)/2-1;
    boolean flag = false;
    if(isPalindrome(s,0,length-1) && isPalindrome(s,0,i) && isPalindrome(s,j,length-1)){
      System.out.println("Yes");
      flag = true;
    }  
    if(!flag){
      System.out.println("No");
    }
  
  
  
  }
  
    public static boolean isPalindrome(String s,int i,int j){
      while(i<=j){
        if(s.charAt(i)!=s.charAt(j)){
          return false;
        }
        i++;
        j--;
      
    }
      if(i>j){
        return true;
      }
    return false;
      
}
  } public class Main{
  public static void main(String[] args) throws Exception{
Scanner sc = new Scanner(System.in);
    String s = sc.nextLine();
    int length = s.length();
    int i = (length-1)/2-1;
    int j = (length+3)/2-1;
    boolean flag = false;
    if(isPalindrome(s,0,length-1) && isPalindrome(s,0,i) && isPalindrome(s,j,length-1)){
      System.out.println("Yes");
      flag = true;
    }  
    if(!flag){
      System.out.println("No");
    }
  
  
  
  }
  
    public static boolean isPalindrome(String s,int i,int j){
      while(i<=j){
        if(s.charAt(i)!=s.charAt(j)){
          return false;
        }
        i++;
        j--;
      
    }
      if(i>j){
        return true;
      }
    return false;
      
}
  } Main
import java.util.*;
import java.io.*;
public class Main{
  public static void main(String[] args) throws Exception{
Scanner sc = new Scanner(System.in);
    String s = sc.nextLine();
    int length = s.length();
    int i = (length-1)/2-1;
    int j = (length+3)/2-1;
    boolean flag = false;
    if(isPalindrome(s,0,length-1) && isPalindrome(s,0,i) && isPalindrome(s,j,length-1)){
      System.out.println("Yes");
      flag = true;
    }  
    if(!flag){
      System.out.println("No");
    }
  
  
  
  }
  
    public static boolean isPalindrome(String s,int i,int j){
      while(i<=j){
        if(s.charAt(i)!=s.charAt(j)){
          return false;
        }
        i++;
        j--;
      
    }
      if(i>j){
        return true;
      }
    return false;
      
}
  }
