import java.io.*;
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		// ------------------------------------------------
		String s = sc.next();

		int n = s.length();

		boolean kaibun = true;
		for (int i = 0; i < n / 2; i++) {
			if (s.charAt(i) != s.charAt(n - 1 - i)) {
				kaibun = false;
				break;
			}
		}
		if (kaibun) {
			String s1 = s.substring(0, n / 2);
			int n1 = s1.length();
			boolean kaibun1 = true;
			for (int i = 0; i < n1; i++) {
				if (s1.charAt(i) != s1.charAt(n1 - 1 - i)) {
					kaibun1 = false;
					break;
				}
			}
			if (kaibun1) {
				out.println("Yes");
			} else {
				out.println("No");
			}
		} else {
			out.println("No");
		}

		// ------------------------------------------------
		sc.close();
		out.flush();
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		// ------------------------------------------------
		String s = sc.next();

		int n = s.length();

		boolean kaibun = true;
		for (int i = 0; i < n / 2; i++) {
			if (s.charAt(i) != s.charAt(n - 1 - i)) {
				kaibun = false;
				break;
			}
		}
		if (kaibun) {
			String s1 = s.substring(0, n / 2);
			int n1 = s1.length();
			boolean kaibun1 = true;
			for (int i = 0; i < n1; i++) {
				if (s1.charAt(i) != s1.charAt(n1 - 1 - i)) {
					kaibun1 = false;
					break;
				}
			}
			if (kaibun1) {
				out.println("Yes");
			} else {
				out.println("No");
			}
		} else {
			out.println("No");
		}

		// ------------------------------------------------
		sc.close();
		out.flush();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		// ------------------------------------------------
		String s = sc.next();

		int n = s.length();

		boolean kaibun = true;
		for (int i = 0; i < n / 2; i++) {
			if (s.charAt(i) != s.charAt(n - 1 - i)) {
				kaibun = false;
				break;
			}
		}
		if (kaibun) {
			String s1 = s.substring(0, n / 2);
			int n1 = s1.length();
			boolean kaibun1 = true;
			for (int i = 0; i < n1; i++) {
				if (s1.charAt(i) != s1.charAt(n1 - 1 - i)) {
					kaibun1 = false;
					break;
				}
			}
			if (kaibun1) {
				out.println("Yes");
			} else {
				out.println("No");
			}
		} else {
			out.println("No");
		}

		// ------------------------------------------------
		sc.close();
		out.flush();
	} main {
		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		// ------------------------------------------------
		String s = sc.next();

		int n = s.length();

		boolean kaibun = true;
		for (int i = 0; i < n / 2; i++) {
			if (s.charAt(i) != s.charAt(n - 1 - i)) {
				kaibun = false;
				break;
			}
		}
		if (kaibun) {
			String s1 = s.substring(0, n / 2);
			int n1 = s1.length();
			boolean kaibun1 = true;
			for (int i = 0; i < n1; i++) {
				if (s1.charAt(i) != s1.charAt(n1 - 1 - i)) {
					kaibun1 = false;
					break;
				}
			}
			if (kaibun1) {
				out.println("Yes");
			} else {
				out.println("No");
			}
		} else {
			out.println("No");
		}

		// ------------------------------------------------
		sc.close();
		out.flush();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) String s = sc.next(); s sc.next() sc.next sc int n = s.length(); n s.length() s.length s boolean kaibun = true; kaibun true for (int i = 0; i < n / 2; i++) {
			if (s.charAt(i) != s.charAt(n - 1 - i)) {
				kaibun = false;
				break;
			}
		} int i = 0; int i = 0; i 0 i < n / 2 i n / 2 n 2 i++ i++ i {
			if (s.charAt(i) != s.charAt(n - 1 - i)) {
				kaibun = false;
				break;
			}
		} {
			if (s.charAt(i) != s.charAt(n - 1 - i)) {
				kaibun = false;
				break;
			}
		} if (s.charAt(i) != s.charAt(n - 1 - i)) {
				kaibun = false;
				break;
			} s.charAt(i) != s.charAt(n - 1 - i) s.charAt(i) s.charAt s i s.charAt(n - 1 - i) s.charAt s n - 1 - i n - 1 - i n 1 i {
				kaibun = false;
				break;
			} kaibun = false kaibun false break; if (kaibun) {
			String s1 = s.substring(0, n / 2);
			int n1 = s1.length();
			boolean kaibun1 = true;
			for (int i = 0; i < n1; i++) {
				if (s1.charAt(i) != s1.charAt(n1 - 1 - i)) {
					kaibun1 = false;
					break;
				}
			}
			if (kaibun1) {
				out.println("Yes");
			} else {
				out.println("No");
			}
		} else {
			out.println("No");
		} kaibun {
			String s1 = s.substring(0, n / 2);
			int n1 = s1.length();
			boolean kaibun1 = true;
			for (int i = 0; i < n1; i++) {
				if (s1.charAt(i) != s1.charAt(n1 - 1 - i)) {
					kaibun1 = false;
					break;
				}
			}
			if (kaibun1) {
				out.println("Yes");
			} else {
				out.println("No");
			}
		} String s1 = s.substring(0, n / 2); s1 s.substring(0, n / 2) s.substring s 0 n / 2 n 2 int n1 = s1.length(); n1 s1.length() s1.length s1 boolean kaibun1 = true; kaibun1 true for (int i = 0; i < n1; i++) {
				if (s1.charAt(i) != s1.charAt(n1 - 1 - i)) {
					kaibun1 = false;
					break;
				}
			} int i = 0; int i = 0; i 0 i < n1 i n1 i++ i++ i {
				if (s1.charAt(i) != s1.charAt(n1 - 1 - i)) {
					kaibun1 = false;
					break;
				}
			} {
				if (s1.charAt(i) != s1.charAt(n1 - 1 - i)) {
					kaibun1 = false;
					break;
				}
			} if (s1.charAt(i) != s1.charAt(n1 - 1 - i)) {
					kaibun1 = false;
					break;
				} s1.charAt(i) != s1.charAt(n1 - 1 - i) s1.charAt(i) s1.charAt s1 i s1.charAt(n1 - 1 - i) s1.charAt s1 n1 - 1 - i n1 - 1 - i n1 1 i {
					kaibun1 = false;
					break;
				} kaibun1 = false kaibun1 false break; if (kaibun1) {
				out.println("Yes");
			} else {
				out.println("No");
			} kaibun1 {
				out.println("Yes");
			} out.println("Yes") out.println out "Yes" {
				out.println("No");
			} out.println("No") out.println out "No" {
			out.println("No");
		} out.println("No") out.println out "No" sc.close() sc.close sc out.flush() out.flush out String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		// ------------------------------------------------
		String s = sc.next();

		int n = s.length();

		boolean kaibun = true;
		for (int i = 0; i < n / 2; i++) {
			if (s.charAt(i) != s.charAt(n - 1 - i)) {
				kaibun = false;
				break;
			}
		}
		if (kaibun) {
			String s1 = s.substring(0, n / 2);
			int n1 = s1.length();
			boolean kaibun1 = true;
			for (int i = 0; i < n1; i++) {
				if (s1.charAt(i) != s1.charAt(n1 - 1 - i)) {
					kaibun1 = false;
					break;
				}
			}
			if (kaibun1) {
				out.println("Yes");
			} else {
				out.println("No");
			}
		} else {
			out.println("No");
		}

		// ------------------------------------------------
		sc.close();
		out.flush();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		// ------------------------------------------------
		String s = sc.next();

		int n = s.length();

		boolean kaibun = true;
		for (int i = 0; i < n / 2; i++) {
			if (s.charAt(i) != s.charAt(n - 1 - i)) {
				kaibun = false;
				break;
			}
		}
		if (kaibun) {
			String s1 = s.substring(0, n / 2);
			int n1 = s1.length();
			boolean kaibun1 = true;
			for (int i = 0; i < n1; i++) {
				if (s1.charAt(i) != s1.charAt(n1 - 1 - i)) {
					kaibun1 = false;
					break;
				}
			}
			if (kaibun1) {
				out.println("Yes");
			} else {
				out.println("No");
			}
		} else {
			out.println("No");
		}

		// ------------------------------------------------
		sc.close();
		out.flush();
	}
} Main
import java.io.*;
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		// ------------------------------------------------
		String s = sc.next();

		int n = s.length();

		boolean kaibun = true;
		for (int i = 0; i < n / 2; i++) {
			if (s.charAt(i) != s.charAt(n - 1 - i)) {
				kaibun = false;
				break;
			}
		}
		if (kaibun) {
			String s1 = s.substring(0, n / 2);
			int n1 = s1.length();
			boolean kaibun1 = true;
			for (int i = 0; i < n1; i++) {
				if (s1.charAt(i) != s1.charAt(n1 - 1 - i)) {
					kaibun1 = false;
					break;
				}
			}
			if (kaibun1) {
				out.println("Yes");
			} else {
				out.println("No");
			}
		} else {
			out.println("No");
		}

		// ------------------------------------------------
		sc.close();
		out.flush();
	}
}