import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		String s = kb.next();
		if (s.length() % 2 == 0) {
			System.out.println("No");
		} else {
			String p = "";
			String q = "";
			for (int i = 0; i < s.length() / 2; i++) {
				p += s.charAt(i);
				q += s.charAt(s.length() - i - 1);
			}
			String r = "";
			for (int i = 0; i < q.length(); i++) {
				r += q.charAt(q.length() - i -1);
			}
			if (p.equals(r)) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}
		kb.close();
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		String s = kb.next();
		if (s.length() % 2 == 0) {
			System.out.println("No");
		} else {
			String p = "";
			String q = "";
			for (int i = 0; i < s.length() / 2; i++) {
				p += s.charAt(i);
				q += s.charAt(s.length() - i - 1);
			}
			String r = "";
			for (int i = 0; i < q.length(); i++) {
				r += q.charAt(q.length() - i -1);
			}
			if (p.equals(r)) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}
		kb.close();
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		String s = kb.next();
		if (s.length() % 2 == 0) {
			System.out.println("No");
		} else {
			String p = "";
			String q = "";
			for (int i = 0; i < s.length() / 2; i++) {
				p += s.charAt(i);
				q += s.charAt(s.length() - i - 1);
			}
			String r = "";
			for (int i = 0; i < q.length(); i++) {
				r += q.charAt(q.length() - i -1);
			}
			if (p.equals(r)) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}
		kb.close();
	} main {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		String s = kb.next();
		if (s.length() % 2 == 0) {
			System.out.println("No");
		} else {
			String p = "";
			String q = "";
			for (int i = 0; i < s.length() / 2; i++) {
				p += s.charAt(i);
				q += s.charAt(s.length() - i - 1);
			}
			String r = "";
			for (int i = 0; i < q.length(); i++) {
				r += q.charAt(q.length() - i -1);
			}
			if (p.equals(r)) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}
		kb.close();
	} Scanner kb = new Scanner(System.in); kb new Scanner(System.in) String s = kb.next(); s kb.next() kb.next kb if (s.length() % 2 == 0) {
			System.out.println("No");
		} else {
			String p = "";
			String q = "";
			for (int i = 0; i < s.length() / 2; i++) {
				p += s.charAt(i);
				q += s.charAt(s.length() - i - 1);
			}
			String r = "";
			for (int i = 0; i < q.length(); i++) {
				r += q.charAt(q.length() - i -1);
			}
			if (p.equals(r)) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		} s.length() % 2 == 0 s.length() % 2 s.length() s.length s 2 0 {
			System.out.println("No");
		} System.out.println("No") System.out.println System.out System System.out "No" {
			String p = "";
			String q = "";
			for (int i = 0; i < s.length() / 2; i++) {
				p += s.charAt(i);
				q += s.charAt(s.length() - i - 1);
			}
			String r = "";
			for (int i = 0; i < q.length(); i++) {
				r += q.charAt(q.length() - i -1);
			}
			if (p.equals(r)) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		} String p = ""; p "" String q = ""; q "" for (int i = 0; i < s.length() / 2; i++) {
				p += s.charAt(i);
				q += s.charAt(s.length() - i - 1);
			} 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 {
				p += s.charAt(i);
				q += s.charAt(s.length() - i - 1);
			} {
				p += s.charAt(i);
				q += s.charAt(s.length() - i - 1);
			} p += s.charAt(i) p s.charAt(i) s.charAt s i q += s.charAt(s.length() - i - 1) q s.charAt(s.length() - i - 1) s.charAt s s.length() - i - 1 s.length() - i - 1 s.length() s.length s i 1 String r = ""; r "" for (int i = 0; i < q.length(); i++) {
				r += q.charAt(q.length() - i -1);
			} int i = 0; int i = 0; i 0 i < q.length() i q.length() q.length q i++ i++ i {
				r += q.charAt(q.length() - i -1);
			} {
				r += q.charAt(q.length() - i -1);
			} r += q.charAt(q.length() - i -1) r q.charAt(q.length() - i -1) q.charAt q q.length() - i -1 q.length() - i -1 q.length() q.length q i 1 if (p.equals(r)) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			} p.equals(r) p.equals p r {
				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" kb.close() kb.close kb String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		String s = kb.next();
		if (s.length() % 2 == 0) {
			System.out.println("No");
		} else {
			String p = "";
			String q = "";
			for (int i = 0; i < s.length() / 2; i++) {
				p += s.charAt(i);
				q += s.charAt(s.length() - i - 1);
			}
			String r = "";
			for (int i = 0; i < q.length(); i++) {
				r += q.charAt(q.length() - i -1);
			}
			if (p.equals(r)) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}
		kb.close();
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		String s = kb.next();
		if (s.length() % 2 == 0) {
			System.out.println("No");
		} else {
			String p = "";
			String q = "";
			for (int i = 0; i < s.length() / 2; i++) {
				p += s.charAt(i);
				q += s.charAt(s.length() - i - 1);
			}
			String r = "";
			for (int i = 0; i < q.length(); i++) {
				r += q.charAt(q.length() - i -1);
			}
			if (p.equals(r)) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}
		kb.close();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner kb = new Scanner(System.in);
		String s = kb.next();
		if (s.length() % 2 == 0) {
			System.out.println("No");
		} else {
			String p = "";
			String q = "";
			for (int i = 0; i < s.length() / 2; i++) {
				p += s.charAt(i);
				q += s.charAt(s.length() - i - 1);
			}
			String r = "";
			for (int i = 0; i < q.length(); i++) {
				r += q.charAt(q.length() - i -1);
			}
			if (p.equals(r)) {
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}
		kb.close();
	}

}
