import java.util.Scanner;

public class Main {
	static Scanner scn = new Scanner(System.in);

	public static void main(String[] args) {
		String str = scn.next();
		boolean Fp = ispalindrome(str);
		if (Fp) {
			boolean Sp = ispalindrome(str.substring(0, str.length() / 2));
			if (Sp) {
				boolean Tp = ispalindrome(str.substring((str.length()) / 2 + 1));
				if (Tp)
					System.out.println("Yes");
				else
					System.out.println("No");
			} else
				System.out.println("No");
		} else
			System.out.println("No");

	}

	public static boolean ispalindrome(String str) {
		for (int i = 0; i < str.length() / 2; i++) {
			if (str.charAt(i) != str.charAt(str.length() - 1 - i))
				return false;
		}
		return true;
	}
} import java.util.Scanner; Scanner java.util public class Main {
	static Scanner scn = new Scanner(System.in);

	public static void main(String[] args) {
		String str = scn.next();
		boolean Fp = ispalindrome(str);
		if (Fp) {
			boolean Sp = ispalindrome(str.substring(0, str.length() / 2));
			if (Sp) {
				boolean Tp = ispalindrome(str.substring((str.length()) / 2 + 1));
				if (Tp)
					System.out.println("Yes");
				else
					System.out.println("No");
			} else
				System.out.println("No");
		} else
			System.out.println("No");

	}

	public static boolean ispalindrome(String str) {
		for (int i = 0; i < str.length() / 2; i++) {
			if (str.charAt(i) != str.charAt(str.length() - 1 - i))
				return false;
		}
		return true;
	}
} Main static Scanner scn = new Scanner(System.in); scn new Scanner(System.in) public static void main(String[] args) {
		String str = scn.next();
		boolean Fp = ispalindrome(str);
		if (Fp) {
			boolean Sp = ispalindrome(str.substring(0, str.length() / 2));
			if (Sp) {
				boolean Tp = ispalindrome(str.substring((str.length()) / 2 + 1));
				if (Tp)
					System.out.println("Yes");
				else
					System.out.println("No");
			} else
				System.out.println("No");
		} else
			System.out.println("No");

	} main {
		String str = scn.next();
		boolean Fp = ispalindrome(str);
		if (Fp) {
			boolean Sp = ispalindrome(str.substring(0, str.length() / 2));
			if (Sp) {
				boolean Tp = ispalindrome(str.substring((str.length()) / 2 + 1));
				if (Tp)
					System.out.println("Yes");
				else
					System.out.println("No");
			} else
				System.out.println("No");
		} else
			System.out.println("No");

	} String str = scn.next(); str scn.next() scn.next scn boolean Fp = ispalindrome(str); Fp ispalindrome(str) ispalindrome str if (Fp) {
			boolean Sp = ispalindrome(str.substring(0, str.length() / 2));
			if (Sp) {
				boolean Tp = ispalindrome(str.substring((str.length()) / 2 + 1));
				if (Tp)
					System.out.println("Yes");
				else
					System.out.println("No");
			} else
				System.out.println("No");
		} else
			System.out.println("No"); Fp {
			boolean Sp = ispalindrome(str.substring(0, str.length() / 2));
			if (Sp) {
				boolean Tp = ispalindrome(str.substring((str.length()) / 2 + 1));
				if (Tp)
					System.out.println("Yes");
				else
					System.out.println("No");
			} else
				System.out.println("No");
		} boolean Sp = ispalindrome(str.substring(0, str.length() / 2)); Sp ispalindrome(str.substring(0, str.length() / 2)) ispalindrome str.substring(0, str.length() / 2) str.substring str 0 str.length() / 2 str.length() str.length str 2 if (Sp) {
				boolean Tp = ispalindrome(str.substring((str.length()) / 2 + 1));
				if (Tp)
					System.out.println("Yes");
				else
					System.out.println("No");
			} else
				System.out.println("No"); Sp {
				boolean Tp = ispalindrome(str.substring((str.length()) / 2 + 1));
				if (Tp)
					System.out.println("Yes");
				else
					System.out.println("No");
			} boolean Tp = ispalindrome(str.substring((str.length()) / 2 + 1)); Tp ispalindrome(str.substring((str.length()) / 2 + 1)) ispalindrome str.substring((str.length()) / 2 + 1) str.substring str (str.length()) / 2 + 1 (str.length()) / 2 (str.length()) str.length str 2 1 if (Tp)
					System.out.println("Yes");
				else
					System.out.println("No"); Tp 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" System.out.println("No") System.out.println System.out System System.out "No" System.out.println("No") System.out.println System.out System System.out "No" String[] args args public static boolean ispalindrome(String str) {
		for (int i = 0; i < str.length() / 2; i++) {
			if (str.charAt(i) != str.charAt(str.length() - 1 - i))
				return false;
		}
		return true;
	} ispalindrome {
		for (int i = 0; i < str.length() / 2; i++) {
			if (str.charAt(i) != str.charAt(str.length() - 1 - i))
				return false;
		}
		return true;
	} for (int i = 0; i < str.length() / 2; i++) {
			if (str.charAt(i) != str.charAt(str.length() - 1 - i))
				return false;
		} int i = 0; int i = 0; i 0 i < str.length() / 2 i str.length() / 2 str.length() str.length str 2 i++ i++ i {
			if (str.charAt(i) != str.charAt(str.length() - 1 - i))
				return false;
		} {
			if (str.charAt(i) != str.charAt(str.length() - 1 - i))
				return false;
		} if (str.charAt(i) != str.charAt(str.length() - 1 - i))
				return false; str.charAt(i) != str.charAt(str.length() - 1 - i) str.charAt(i) str.charAt str i str.charAt(str.length() - 1 - i) str.charAt str str.length() - 1 - i str.length() - 1 - i str.length() str.length str 1 i return false; false return true; true String str str public class Main {
	static Scanner scn = new Scanner(System.in);

	public static void main(String[] args) {
		String str = scn.next();
		boolean Fp = ispalindrome(str);
		if (Fp) {
			boolean Sp = ispalindrome(str.substring(0, str.length() / 2));
			if (Sp) {
				boolean Tp = ispalindrome(str.substring((str.length()) / 2 + 1));
				if (Tp)
					System.out.println("Yes");
				else
					System.out.println("No");
			} else
				System.out.println("No");
		} else
			System.out.println("No");

	}

	public static boolean ispalindrome(String str) {
		for (int i = 0; i < str.length() / 2; i++) {
			if (str.charAt(i) != str.charAt(str.length() - 1 - i))
				return false;
		}
		return true;
	}
} public class Main {
	static Scanner scn = new Scanner(System.in);

	public static void main(String[] args) {
		String str = scn.next();
		boolean Fp = ispalindrome(str);
		if (Fp) {
			boolean Sp = ispalindrome(str.substring(0, str.length() / 2));
			if (Sp) {
				boolean Tp = ispalindrome(str.substring((str.length()) / 2 + 1));
				if (Tp)
					System.out.println("Yes");
				else
					System.out.println("No");
			} else
				System.out.println("No");
		} else
			System.out.println("No");

	}

	public static boolean ispalindrome(String str) {
		for (int i = 0; i < str.length() / 2; i++) {
			if (str.charAt(i) != str.charAt(str.length() - 1 - i))
				return false;
		}
		return true;
	}
} Main
import java.util.Scanner;

public class Main {
	static Scanner scn = new Scanner(System.in);

	public static void main(String[] args) {
		String str = scn.next();
		boolean Fp = ispalindrome(str);
		if (Fp) {
			boolean Sp = ispalindrome(str.substring(0, str.length() / 2));
			if (Sp) {
				boolean Tp = ispalindrome(str.substring((str.length()) / 2 + 1));
				if (Tp)
					System.out.println("Yes");
				else
					System.out.println("No");
			} else
				System.out.println("No");
		} else
			System.out.println("No");

	}

	public static boolean ispalindrome(String str) {
		for (int i = 0; i < str.length() / 2; i++) {
			if (str.charAt(i) != str.charAt(str.length() - 1 - i))
				return false;
		}
		return true;
	}
}
