import java.util.*;

class Main {
	Scanner sc;
	String S;
	
	private void calc() {
		sc = new Scanner(System.in);
		S = sc.next();
		int N = S.length();
		if (isRev(S) && isRev(S.substring(0, (N-1)/2)) && isRev(S.substring( (N-1)/2+1)))
			System.out.println("Yes");
		else System.out.println("No");
	}
	
	private boolean isRev(String s) {
		int n = s.length();
		for (int i = 0; i < n / 2; i++) {
			if (s.charAt(i) != s.charAt(n-1-i)) return false;
		}
		return true;
	}

	public static void main(String[] args) {
		new Main().calc();
	}
} import java.util.*; util.* java class Main {
	Scanner sc;
	String S;
	
	private void calc() {
		sc = new Scanner(System.in);
		S = sc.next();
		int N = S.length();
		if (isRev(S) && isRev(S.substring(0, (N-1)/2)) && isRev(S.substring( (N-1)/2+1)))
			System.out.println("Yes");
		else System.out.println("No");
	}
	
	private boolean isRev(String s) {
		int n = s.length();
		for (int i = 0; i < n / 2; i++) {
			if (s.charAt(i) != s.charAt(n-1-i)) return false;
		}
		return true;
	}

	public static void main(String[] args) {
		new Main().calc();
	}
} Main Scanner sc; sc String S; S private void calc() {
		sc = new Scanner(System.in);
		S = sc.next();
		int N = S.length();
		if (isRev(S) && isRev(S.substring(0, (N-1)/2)) && isRev(S.substring( (N-1)/2+1)))
			System.out.println("Yes");
		else System.out.println("No");
	} calc {
		sc = new Scanner(System.in);
		S = sc.next();
		int N = S.length();
		if (isRev(S) && isRev(S.substring(0, (N-1)/2)) && isRev(S.substring( (N-1)/2+1)))
			System.out.println("Yes");
		else System.out.println("No");
	} sc = new Scanner(System.in) sc new Scanner(System.in) S = sc.next() S sc.next() sc.next sc int N = S.length(); N S.length() S.length S if (isRev(S) && isRev(S.substring(0, (N-1)/2)) && isRev(S.substring( (N-1)/2+1)))
			System.out.println("Yes");
		else System.out.println("No"); isRev(S) && isRev(S.substring(0, (N-1)/2)) && isRev(S.substring( (N-1)/2+1)) isRev(S) && isRev(S.substring(0, (N-1)/2)) && isRev(S.substring( (N-1)/2+1)) isRev(S) isRev S isRev(S.substring(0, (N-1)/2)) isRev S.substring(0, (N-1)/2) S.substring S 0 (N-1)/2 (N-1) N 1 2 isRev(S.substring( (N-1)/2+1)) isRev S.substring( (N-1)/2+1) S.substring S (N-1)/2+1 (N-1)/2 (N-1) N 1 2 1 System.out.println("Yes") System.out.println System.out System System.out "Yes" System.out.println("No") System.out.println System.out System System.out "No" private boolean isRev(String s) {
		int n = s.length();
		for (int i = 0; i < n / 2; i++) {
			if (s.charAt(i) != s.charAt(n-1-i)) return false;
		}
		return true;
	} isRev {
		int n = s.length();
		for (int i = 0; i < n / 2; i++) {
			if (s.charAt(i) != s.charAt(n-1-i)) return false;
		}
		return true;
	} int n = s.length(); n s.length() s.length s for (int i = 0; i < n / 2; i++) {
			if (s.charAt(i) != s.charAt(n-1-i)) return false;
		} 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)) return false;
		} {
			if (s.charAt(i) != s.charAt(n-1-i)) return false;
		} if (s.charAt(i) != s.charAt(n-1-i)) return false; 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 return false; false return true; true String s s public static void main(String[] args) {
		new Main().calc();
	} main {
		new Main().calc();
	} new Main().calc() new Main().calc new Main() String[] args args
import java.util.*;

class Main {
	Scanner sc;
	String S;
	
	private void calc() {
		sc = new Scanner(System.in);
		S = sc.next();
		int N = S.length();
		if (isRev(S) && isRev(S.substring(0, (N-1)/2)) && isRev(S.substring( (N-1)/2+1)))
			System.out.println("Yes");
		else System.out.println("No");
	}
	
	private boolean isRev(String s) {
		int n = s.length();
		for (int i = 0; i < n / 2; i++) {
			if (s.charAt(i) != s.charAt(n-1-i)) return false;
		}
		return true;
	}

	public static void main(String[] args) {
		new Main().calc();
	}
}
