import java.io.*;
import java.util.*;

public class Main extends PrintWriter {
	Main() { super(System.out, true); }
	Scanner sc = new Scanner(System.in);
	public static void main(String[] $) {
		Main o = new Main(); o.main(); o.flush();
	}

	byte[] cc;
	boolean pal(int i, int j) {
		while (i < j) {
			if (cc[i] != cc[j])
				return false;
			i++; j--;
		}
		return true;
	}
	void main() {
		cc = sc.next().getBytes();
		int n = cc.length;
		int h = (n - 1) / 2;
		println(pal(0, n - 1) && pal(0, h - 1) && pal(h + 1, n - 1) ? "Yes" : "No");
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main extends PrintWriter {
	Main() { super(System.out, true); }
	Scanner sc = new Scanner(System.in);
	public static void main(String[] $) {
		Main o = new Main(); o.main(); o.flush();
	}

	byte[] cc;
	boolean pal(int i, int j) {
		while (i < j) {
			if (cc[i] != cc[j])
				return false;
			i++; j--;
		}
		return true;
	}
	void main() {
		cc = sc.next().getBytes();
		int n = cc.length;
		int h = (n - 1) / 2;
		println(pal(0, n - 1) && pal(0, h - 1) && pal(h + 1, n - 1) ? "Yes" : "No");
	}
} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) byte[] cc; cc Main() { super(System.out, true); } Main { super(System.out, true); } super(System.out, true) super System.out System System.out true public static void main(String[] $) {
		Main o = new Main(); o.main(); o.flush();
	} main {
		Main o = new Main(); o.main(); o.flush();
	} Main o = new Main(); o new Main() o.main() o.main o o.flush() o.flush o String[] $ $ boolean pal(int i, int j) {
		while (i < j) {
			if (cc[i] != cc[j])
				return false;
			i++; j--;
		}
		return true;
	} pal {
		while (i < j) {
			if (cc[i] != cc[j])
				return false;
			i++; j--;
		}
		return true;
	} while (i < j) {
			if (cc[i] != cc[j])
				return false;
			i++; j--;
		} i < j i j {
			if (cc[i] != cc[j])
				return false;
			i++; j--;
		} if (cc[i] != cc[j])
				return false; cc[i] != cc[j] cc[i] cc i cc[j] cc j return false; false i++ i j-- j return true; true int i i int j j void main() {
		cc = sc.next().getBytes();
		int n = cc.length;
		int h = (n - 1) / 2;
		println(pal(0, n - 1) && pal(0, h - 1) && pal(h + 1, n - 1) ? "Yes" : "No");
	} main {
		cc = sc.next().getBytes();
		int n = cc.length;
		int h = (n - 1) / 2;
		println(pal(0, n - 1) && pal(0, h - 1) && pal(h + 1, n - 1) ? "Yes" : "No");
	} cc = sc.next().getBytes() cc sc.next().getBytes() sc.next().getBytes sc.next() sc.next sc int n = cc.length; n cc.length cc cc.length int h = (n - 1) / 2; h (n - 1) / 2 (n - 1) n 1 2 println(pal(0, n - 1) && pal(0, h - 1) && pal(h + 1, n - 1) ? "Yes" : "No") println pal(0, n - 1) && pal(0, h - 1) && pal(h + 1, n - 1) ? "Yes" : "No" pal(0, n - 1) && pal(0, h - 1) && pal(h + 1, n - 1) pal(0, n - 1) && pal(0, h - 1) && pal(h + 1, n - 1) pal(0, n - 1) pal 0 n - 1 n 1 pal(0, h - 1) pal 0 h - 1 h 1 pal(h + 1, n - 1) pal h + 1 h 1 n - 1 n 1 "Yes" "No" PrintWriter public class Main extends PrintWriter {
	Main() { super(System.out, true); }
	Scanner sc = new Scanner(System.in);
	public static void main(String[] $) {
		Main o = new Main(); o.main(); o.flush();
	}

	byte[] cc;
	boolean pal(int i, int j) {
		while (i < j) {
			if (cc[i] != cc[j])
				return false;
			i++; j--;
		}
		return true;
	}
	void main() {
		cc = sc.next().getBytes();
		int n = cc.length;
		int h = (n - 1) / 2;
		println(pal(0, n - 1) && pal(0, h - 1) && pal(h + 1, n - 1) ? "Yes" : "No");
	}
} public class Main extends PrintWriter {
	Main() { super(System.out, true); }
	Scanner sc = new Scanner(System.in);
	public static void main(String[] $) {
		Main o = new Main(); o.main(); o.flush();
	}

	byte[] cc;
	boolean pal(int i, int j) {
		while (i < j) {
			if (cc[i] != cc[j])
				return false;
			i++; j--;
		}
		return true;
	}
	void main() {
		cc = sc.next().getBytes();
		int n = cc.length;
		int h = (n - 1) / 2;
		println(pal(0, n - 1) && pal(0, h - 1) && pal(h + 1, n - 1) ? "Yes" : "No");
	}
} Main
import java.io.*;
import java.util.*;

public class Main extends PrintWriter {
	Main() { super(System.out, true); }
	Scanner sc = new Scanner(System.in);
	public static void main(String[] $) {
		Main o = new Main(); o.main(); o.flush();
	}

	byte[] cc;
	boolean pal(int i, int j) {
		while (i < j) {
			if (cc[i] != cc[j])
				return false;
			i++; j--;
		}
		return true;
	}
	void main() {
		cc = sc.next().getBytes();
		int n = cc.length;
		int h = (n - 1) / 2;
		println(pal(0, n - 1) && pal(0, h - 1) && pal(h + 1, n - 1) ? "Yes" : "No");
	}
}
