#include<bits/stdc++.h>
using namespace std;
bool f(string s){
  string t = s;
  reverse(t.begin(), t.end());
  return s == t;
}
int main() {
  string s;
  cin >> s;
  int n = s.size();
  bool ans = f(s);
  ans &= f(s.substr(0, n / 2));
  ans &= f(s.substr((n+1) / 2));
  cout << (ans ? "Yes" : "No") << endl;
}