import std.stdio;
import std.conv;
import std.string;
import std.typecons;
import std.algorithm;
import std.array;
import std.range;
import std.math;
import std.regex : regex;
import std.container;
import std.bigint;
import std.ascii;


void main()
{
  auto s = readln.chomp;

  auto f = true;
  foreach (i; 0..s.length/2) {
    if (s[i] != s[$-i-1]) {
      f = false;
    }
  }

  foreach (i; 0..s.length/4) {
    if (s[i] != s[$/2-1-i]) {
      f = false;
    }
    if (s[$/2+1+i] != s[$-1-i]) {
      f = false;
    }
  }

  if (f) {
    writeln("Yes");
  } else {
    writeln("No");
  }
}
