#include <bits/stdc++.h>
using namespace std;

bool A(string s){
  string t=s;
  reverse(t.begin(),t.end());
  return s==t;
}
int main(){
  string s;
 
  cin>>s;
  bool ans=true;
  if(!A(s))ans=false;
  if(!A(s.substr(0,s.size()/2)))ans=false;
  
  cout<<(ans ? "Yes" : "No")<<endl;
}