import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.nextLine();
		sc.close();
		int N = S.length();
		//回文であるかチェック
		checkPalindrome(S, (N - 1) / 2, 0, N - 1);
		checkPalindrome(S, (N - 1) / 4, 0, (N - 3) / 2);
		checkPalindrome(S, (N - 1) / 4, (N + 1) / 2, N - 1);
		System.out.println("Yes");
	}

	public static void checkPalindrome(String S, int num1, int num2, int num3) {
		for (int i = 0; i < num1; i++) {
			if (S.charAt(num2 + i) != S.charAt(num3 - i)) {
				System.out.println("No");
				System.exit(0);
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.nextLine();
		sc.close();
		int N = S.length();
		//回文であるかチェック
		checkPalindrome(S, (N - 1) / 2, 0, N - 1);
		checkPalindrome(S, (N - 1) / 4, 0, (N - 3) / 2);
		checkPalindrome(S, (N - 1) / 4, (N + 1) / 2, N - 1);
		System.out.println("Yes");
	}

	public static void checkPalindrome(String S, int num1, int num2, int num3) {
		for (int i = 0; i < num1; i++) {
			if (S.charAt(num2 + i) != S.charAt(num3 - i)) {
				System.out.println("No");
				System.exit(0);
			}
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.nextLine();
		sc.close();
		int N = S.length();
		//回文であるかチェック
		checkPalindrome(S, (N - 1) / 2, 0, N - 1);
		checkPalindrome(S, (N - 1) / 4, 0, (N - 3) / 2);
		checkPalindrome(S, (N - 1) / 4, (N + 1) / 2, N - 1);
		System.out.println("Yes");
	} main {
		Scanner sc = new Scanner(System.in);
		String S = sc.nextLine();
		sc.close();
		int N = S.length();
		//回文であるかチェック
		checkPalindrome(S, (N - 1) / 2, 0, N - 1);
		checkPalindrome(S, (N - 1) / 4, 0, (N - 3) / 2);
		checkPalindrome(S, (N - 1) / 4, (N + 1) / 2, N - 1);
		System.out.println("Yes");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.nextLine(); S sc.nextLine() sc.nextLine sc sc.close() sc.close sc int N = S.length(); N S.length() S.length S checkPalindrome(S, (N - 1) / 2, 0, N - 1) checkPalindrome S (N - 1) / 2 (N - 1) N 1 2 0 N - 1 N 1 checkPalindrome(S, (N - 1) / 4, 0, (N - 3) / 2) checkPalindrome S (N - 1) / 4 (N - 1) N 1 4 0 (N - 3) / 2 (N - 3) N 3 2 checkPalindrome(S, (N - 1) / 4, (N + 1) / 2, N - 1) checkPalindrome S (N - 1) / 4 (N - 1) N 1 4 (N + 1) / 2 (N + 1) N 1 2 N - 1 N 1 System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public static void checkPalindrome(String S, int num1, int num2, int num3) {
		for (int i = 0; i < num1; i++) {
			if (S.charAt(num2 + i) != S.charAt(num3 - i)) {
				System.out.println("No");
				System.exit(0);
			}
		}
	} checkPalindrome {
		for (int i = 0; i < num1; i++) {
			if (S.charAt(num2 + i) != S.charAt(num3 - i)) {
				System.out.println("No");
				System.exit(0);
			}
		}
	} for (int i = 0; i < num1; i++) {
			if (S.charAt(num2 + i) != S.charAt(num3 - i)) {
				System.out.println("No");
				System.exit(0);
			}
		} int i = 0; int i = 0; i 0 i < num1 i num1 i++ i++ i {
			if (S.charAt(num2 + i) != S.charAt(num3 - i)) {
				System.out.println("No");
				System.exit(0);
			}
		} {
			if (S.charAt(num2 + i) != S.charAt(num3 - i)) {
				System.out.println("No");
				System.exit(0);
			}
		} if (S.charAt(num2 + i) != S.charAt(num3 - i)) {
				System.out.println("No");
				System.exit(0);
			} S.charAt(num2 + i) != S.charAt(num3 - i) S.charAt(num2 + i) S.charAt S num2 + i num2 i S.charAt(num3 - i) S.charAt S num3 - i num3 i {
				System.out.println("No");
				System.exit(0);
			} System.out.println("No") System.out.println System.out System System.out "No" System.exit(0) System.exit System 0 String S S int num1 num1 int num2 num2 int num3 num3 public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.nextLine();
		sc.close();
		int N = S.length();
		//回文であるかチェック
		checkPalindrome(S, (N - 1) / 2, 0, N - 1);
		checkPalindrome(S, (N - 1) / 4, 0, (N - 3) / 2);
		checkPalindrome(S, (N - 1) / 4, (N + 1) / 2, N - 1);
		System.out.println("Yes");
	}

	public static void checkPalindrome(String S, int num1, int num2, int num3) {
		for (int i = 0; i < num1; i++) {
			if (S.charAt(num2 + i) != S.charAt(num3 - i)) {
				System.out.println("No");
				System.exit(0);
			}
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.nextLine();
		sc.close();
		int N = S.length();
		//回文であるかチェック
		checkPalindrome(S, (N - 1) / 2, 0, N - 1);
		checkPalindrome(S, (N - 1) / 4, 0, (N - 3) / 2);
		checkPalindrome(S, (N - 1) / 4, (N + 1) / 2, N - 1);
		System.out.println("Yes");
	}

	public static void checkPalindrome(String S, int num1, int num2, int num3) {
		for (int i = 0; i < num1; i++) {
			if (S.charAt(num2 + i) != S.charAt(num3 - i)) {
				System.out.println("No");
				System.exit(0);
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String S = sc.nextLine();
		sc.close();
		int N = S.length();
		//回文であるかチェック
		checkPalindrome(S, (N - 1) / 2, 0, N - 1);
		checkPalindrome(S, (N - 1) / 4, 0, (N - 3) / 2);
		checkPalindrome(S, (N - 1) / 4, (N + 1) / 2, N - 1);
		System.out.println("Yes");
	}

	public static void checkPalindrome(String S, int num1, int num2, int num3) {
		for (int i = 0; i < num1; i++) {
			if (S.charAt(num2 + i) != S.charAt(num3 - i)) {
				System.out.println("No");
				System.exit(0);
			}
		}
	}
}