import java.util.*;
import java.io.PrintWriter;
import static java.lang.Integer.*;
import static java.lang.Long.*;
import static java.lang.Math.*;
import static java.lang.System.*;

public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		String s = sc.next();
		sc.close();
		String s1 = s.substring(0, s.length()/2);
		String s2 = new StringBuffer(s.substring((s.length()+1)/2)).reverse().toString();
		String s1a = s1.substring(0, s1.length()/2);
		String s1b = new StringBuffer(s1.substring((s1.length()+1)/2)).reverse().toString();
		out.println(s1.equals(s2)&&s1a.equals(s1b)?"Yes":"No");
	}
} import java.util.*; util.* java import java.io.PrintWriter; PrintWriter java.io import static java.lang.Integer.*; import static java.lang.Integer.*; import static java.lang.Integer.*; import static java.lang.Long.*; import static java.lang.Long.*; import static java.lang.Long.*; import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		String s = sc.next();
		sc.close();
		String s1 = s.substring(0, s.length()/2);
		String s2 = new StringBuffer(s.substring((s.length()+1)/2)).reverse().toString();
		String s1a = s1.substring(0, s1.length()/2);
		String s1b = new StringBuffer(s1.substring((s1.length()+1)/2)).reverse().toString();
		out.println(s1.equals(s2)&&s1a.equals(s1b)?"Yes":"No");
	}
} Main public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		String s = sc.next();
		sc.close();
		String s1 = s.substring(0, s.length()/2);
		String s2 = new StringBuffer(s.substring((s.length()+1)/2)).reverse().toString();
		String s1a = s1.substring(0, s1.length()/2);
		String s1b = new StringBuffer(s1.substring((s1.length()+1)/2)).reverse().toString();
		out.println(s1.equals(s2)&&s1a.equals(s1b)?"Yes":"No");
	} main {
		int i,j;
		Scanner sc = new Scanner(in);
		String s = sc.next();
		sc.close();
		String s1 = s.substring(0, s.length()/2);
		String s2 = new StringBuffer(s.substring((s.length()+1)/2)).reverse().toString();
		String s1a = s1.substring(0, s1.length()/2);
		String s1b = new StringBuffer(s1.substring((s1.length()+1)/2)).reverse().toString();
		out.println(s1.equals(s2)&&s1a.equals(s1b)?"Yes":"No");
	} int i i j; j Scanner sc = new Scanner(in); sc new Scanner(in) String s = sc.next(); s sc.next() sc.next sc sc.close() sc.close sc String s1 = s.substring(0, s.length()/2); s1 s.substring(0, s.length()/2) s.substring s 0 s.length()/2 s.length() s.length s 2 String s2 = new StringBuffer(s.substring((s.length()+1)/2)).reverse().toString(); s2 new StringBuffer(s.substring((s.length()+1)/2)).reverse().toString() new StringBuffer(s.substring((s.length()+1)/2)).reverse().toString new StringBuffer(s.substring((s.length()+1)/2)).reverse() new StringBuffer(s.substring((s.length()+1)/2)).reverse new StringBuffer(s.substring((s.length()+1)/2)) String s1a = s1.substring(0, s1.length()/2); s1a s1.substring(0, s1.length()/2) s1.substring s1 0 s1.length()/2 s1.length() s1.length s1 2 String s1b = new StringBuffer(s1.substring((s1.length()+1)/2)).reverse().toString(); s1b new StringBuffer(s1.substring((s1.length()+1)/2)).reverse().toString() new StringBuffer(s1.substring((s1.length()+1)/2)).reverse().toString new StringBuffer(s1.substring((s1.length()+1)/2)).reverse() new StringBuffer(s1.substring((s1.length()+1)/2)).reverse new StringBuffer(s1.substring((s1.length()+1)/2)) out.println(s1.equals(s2)&&s1a.equals(s1b)?"Yes":"No") out.println out s1.equals(s2)&&s1a.equals(s1b)?"Yes":"No" s1.equals(s2)&&s1a.equals(s1b) s1.equals(s2) s1.equals s1 s2 s1a.equals(s1b) s1a.equals s1a s1b "Yes" "No" String[] args args public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		String s = sc.next();
		sc.close();
		String s1 = s.substring(0, s.length()/2);
		String s2 = new StringBuffer(s.substring((s.length()+1)/2)).reverse().toString();
		String s1a = s1.substring(0, s1.length()/2);
		String s1b = new StringBuffer(s1.substring((s1.length()+1)/2)).reverse().toString();
		out.println(s1.equals(s2)&&s1a.equals(s1b)?"Yes":"No");
	}
} public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		String s = sc.next();
		sc.close();
		String s1 = s.substring(0, s.length()/2);
		String s2 = new StringBuffer(s.substring((s.length()+1)/2)).reverse().toString();
		String s1a = s1.substring(0, s1.length()/2);
		String s1b = new StringBuffer(s1.substring((s1.length()+1)/2)).reverse().toString();
		out.println(s1.equals(s2)&&s1a.equals(s1b)?"Yes":"No");
	}
} Main
import java.util.*;
import java.io.PrintWriter;
import static java.lang.Integer.*;
import static java.lang.Long.*;
import static java.lang.Math.*;
import static java.lang.System.*;

public class Main {
	public static void main(String[] args) {
		int i,j;
		Scanner sc = new Scanner(in);
		String s = sc.next();
		sc.close();
		String s1 = s.substring(0, s.length()/2);
		String s2 = new StringBuffer(s.substring((s.length()+1)/2)).reverse().toString();
		String s1a = s1.substring(0, s1.length()/2);
		String s1b = new StringBuffer(s1.substring((s1.length()+1)/2)).reverse().toString();
		out.println(s1.equals(s2)&&s1a.equals(s1b)?"Yes":"No");
	}
}
