import java.util.Scanner;

public class Main {

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

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		String s = input.nextLine();
		int N = s.length();
		int START = N/2;
		if (Palindrome(s)&&Palindrome(s.substring(0,START))&&Palindrome(s.substring(START+1))) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
	public static boolean Palindrome(String s) {
		for (int i = 0; i < s.length()/2; i++) {
			if (s.charAt(i)!=s.charAt(s.length()-i-1)) return false;
		}
		return true;
	}
} Main public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		String s = input.nextLine();
		int N = s.length();
		int START = N/2;
		if (Palindrome(s)&&Palindrome(s.substring(0,START))&&Palindrome(s.substring(START+1))) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} main {
		Scanner input = new Scanner(System.in);
		String s = input.nextLine();
		int N = s.length();
		int START = N/2;
		if (Palindrome(s)&&Palindrome(s.substring(0,START))&&Palindrome(s.substring(START+1))) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) String s = input.nextLine(); s input.nextLine() input.nextLine input int N = s.length(); N s.length() s.length s int START = N/2; START N/2 N 2 if (Palindrome(s)&&Palindrome(s.substring(0,START))&&Palindrome(s.substring(START+1))) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} Palindrome(s)&&Palindrome(s.substring(0,START))&&Palindrome(s.substring(START+1)) Palindrome(s)&&Palindrome(s.substring(0,START))&&Palindrome(s.substring(START+1)) Palindrome(s) Palindrome s Palindrome(s.substring(0,START)) Palindrome s.substring(0,START) s.substring s 0 START Palindrome(s.substring(START+1)) Palindrome s.substring(START+1) s.substring s START+1 START 1 {
			System.out.println("Yes");
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" String[] args args public static boolean Palindrome(String s) {
		for (int i = 0; i < s.length()/2; i++) {
			if (s.charAt(i)!=s.charAt(s.length()-i-1)) return false;
		}
		return true;
	} Palindrome {
		for (int i = 0; i < s.length()/2; i++) {
			if (s.charAt(i)!=s.charAt(s.length()-i-1)) return false;
		}
		return true;
	} for (int i = 0; i < s.length()/2; i++) {
			if (s.charAt(i)!=s.charAt(s.length()-i-1)) return false;
		} int i = 0; int i = 0; i 0 i < s.length()/2 i s.length()/2 s.length() s.length s 2 i++ i++ i {
			if (s.charAt(i)!=s.charAt(s.length()-i-1)) return false;
		} {
			if (s.charAt(i)!=s.charAt(s.length()-i-1)) return false;
		} if (s.charAt(i)!=s.charAt(s.length()-i-1)) return false; s.charAt(i)!=s.charAt(s.length()-i-1) s.charAt(i) s.charAt s i s.charAt(s.length()-i-1) s.charAt s s.length()-i-1 s.length()-i-1 s.length() s.length s i 1 return false; false return true; true String s s public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		String s = input.nextLine();
		int N = s.length();
		int START = N/2;
		if (Palindrome(s)&&Palindrome(s.substring(0,START))&&Palindrome(s.substring(START+1))) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
	public static boolean Palindrome(String s) {
		for (int i = 0; i < s.length()/2; i++) {
			if (s.charAt(i)!=s.charAt(s.length()-i-1)) return false;
		}
		return true;
	}
} public class Main {

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

public class Main {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		String s = input.nextLine();
		int N = s.length();
		int START = N/2;
		if (Palindrome(s)&&Palindrome(s.substring(0,START))&&Palindrome(s.substring(START+1))) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
	public static boolean Palindrome(String s) {
		for (int i = 0; i < s.length()/2; i++) {
			if (s.charAt(i)!=s.charAt(s.length()-i-1)) return false;
		}
		return true;
	}
}