import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int len = s.length();
		int a=0;
		for(int i=0;i<(len-1)/2;i++) {
			if((char)s.charAt(i)!=(char)s.charAt(len-1-i)) {
				a=-1;
				break;
			}
		}
		for(int i=0;i<(len-1)/4;i++) {
			if((char)s.charAt(i)!=(char)s.charAt(((len-1)/2)-i-1)) {
				a=-1;
				break;
			}
		}
		for(int i=0;i<(len-1)/4;i++) {
			if((char)s.charAt(((len+3)/2)+i-1)!=(char)s.charAt(len-1-i)){
				a=-1;
				break;
			}
		}
		if(a==0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int len = s.length();
		int a=0;
		for(int i=0;i<(len-1)/2;i++) {
			if((char)s.charAt(i)!=(char)s.charAt(len-1-i)) {
				a=-1;
				break;
			}
		}
		for(int i=0;i<(len-1)/4;i++) {
			if((char)s.charAt(i)!=(char)s.charAt(((len-1)/2)-i-1)) {
				a=-1;
				break;
			}
		}
		for(int i=0;i<(len-1)/4;i++) {
			if((char)s.charAt(((len+3)/2)+i-1)!=(char)s.charAt(len-1-i)){
				a=-1;
				break;
			}
		}
		if(a==0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int len = s.length();
		int a=0;
		for(int i=0;i<(len-1)/2;i++) {
			if((char)s.charAt(i)!=(char)s.charAt(len-1-i)) {
				a=-1;
				break;
			}
		}
		for(int i=0;i<(len-1)/4;i++) {
			if((char)s.charAt(i)!=(char)s.charAt(((len-1)/2)-i-1)) {
				a=-1;
				break;
			}
		}
		for(int i=0;i<(len-1)/4;i++) {
			if((char)s.charAt(((len+3)/2)+i-1)!=(char)s.charAt(len-1-i)){
				a=-1;
				break;
			}
		}
		if(a==0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int len = s.length();
		int a=0;
		for(int i=0;i<(len-1)/2;i++) {
			if((char)s.charAt(i)!=(char)s.charAt(len-1-i)) {
				a=-1;
				break;
			}
		}
		for(int i=0;i<(len-1)/4;i++) {
			if((char)s.charAt(i)!=(char)s.charAt(((len-1)/2)-i-1)) {
				a=-1;
				break;
			}
		}
		for(int i=0;i<(len-1)/4;i++) {
			if((char)s.charAt(((len+3)/2)+i-1)!=(char)s.charAt(len-1-i)){
				a=-1;
				break;
			}
		}
		if(a==0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int len = s.length(); len s.length() s.length s int a=0; a 0 for(int i=0;i<(len-1)/2;i++) {
			if((char)s.charAt(i)!=(char)s.charAt(len-1-i)) {
				a=-1;
				break;
			}
		} int i=0; int i=0; i 0 i<(len-1)/2 i (len-1)/2 (len-1) len 1 2 i++ i++ i {
			if((char)s.charAt(i)!=(char)s.charAt(len-1-i)) {
				a=-1;
				break;
			}
		} {
			if((char)s.charAt(i)!=(char)s.charAt(len-1-i)) {
				a=-1;
				break;
			}
		} if((char)s.charAt(i)!=(char)s.charAt(len-1-i)) {
				a=-1;
				break;
			} (char)s.charAt(i)!=(char)s.charAt(len-1-i) (char)s.charAt(i) s.charAt s i (char)s.charAt(len-1-i) s.charAt s len-1-i len-1-i len 1 i {
				a=-1;
				break;
			} a=-1 a -1 1 break; for(int i=0;i<(len-1)/4;i++) {
			if((char)s.charAt(i)!=(char)s.charAt(((len-1)/2)-i-1)) {
				a=-1;
				break;
			}
		} int i=0; int i=0; i 0 i<(len-1)/4 i (len-1)/4 (len-1) len 1 4 i++ i++ i {
			if((char)s.charAt(i)!=(char)s.charAt(((len-1)/2)-i-1)) {
				a=-1;
				break;
			}
		} {
			if((char)s.charAt(i)!=(char)s.charAt(((len-1)/2)-i-1)) {
				a=-1;
				break;
			}
		} if((char)s.charAt(i)!=(char)s.charAt(((len-1)/2)-i-1)) {
				a=-1;
				break;
			} (char)s.charAt(i)!=(char)s.charAt(((len-1)/2)-i-1) (char)s.charAt(i) s.charAt s i (char)s.charAt(((len-1)/2)-i-1) s.charAt s ((len-1)/2)-i-1 ((len-1)/2)-i-1 ((len-1)/2) (len-1) len 1 2 i 1 {
				a=-1;
				break;
			} a=-1 a -1 1 break; for(int i=0;i<(len-1)/4;i++) {
			if((char)s.charAt(((len+3)/2)+i-1)!=(char)s.charAt(len-1-i)){
				a=-1;
				break;
			}
		} int i=0; int i=0; i 0 i<(len-1)/4 i (len-1)/4 (len-1) len 1 4 i++ i++ i {
			if((char)s.charAt(((len+3)/2)+i-1)!=(char)s.charAt(len-1-i)){
				a=-1;
				break;
			}
		} {
			if((char)s.charAt(((len+3)/2)+i-1)!=(char)s.charAt(len-1-i)){
				a=-1;
				break;
			}
		} if((char)s.charAt(((len+3)/2)+i-1)!=(char)s.charAt(len-1-i)){
				a=-1;
				break;
			} (char)s.charAt(((len+3)/2)+i-1)!=(char)s.charAt(len-1-i) (char)s.charAt(((len+3)/2)+i-1) s.charAt s ((len+3)/2)+i-1 ((len+3)/2)+i ((len+3)/2) (len+3) len 3 2 i 1 (char)s.charAt(len-1-i) s.charAt s len-1-i len-1-i len 1 i {
				a=-1;
				break;
			} a=-1 a -1 1 break; if(a==0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} a==0 a 0 {
			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 class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int len = s.length();
		int a=0;
		for(int i=0;i<(len-1)/2;i++) {
			if((char)s.charAt(i)!=(char)s.charAt(len-1-i)) {
				a=-1;
				break;
			}
		}
		for(int i=0;i<(len-1)/4;i++) {
			if((char)s.charAt(i)!=(char)s.charAt(((len-1)/2)-i-1)) {
				a=-1;
				break;
			}
		}
		for(int i=0;i<(len-1)/4;i++) {
			if((char)s.charAt(((len+3)/2)+i-1)!=(char)s.charAt(len-1-i)){
				a=-1;
				break;
			}
		}
		if(a==0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int len = s.length();
		int a=0;
		for(int i=0;i<(len-1)/2;i++) {
			if((char)s.charAt(i)!=(char)s.charAt(len-1-i)) {
				a=-1;
				break;
			}
		}
		for(int i=0;i<(len-1)/4;i++) {
			if((char)s.charAt(i)!=(char)s.charAt(((len-1)/2)-i-1)) {
				a=-1;
				break;
			}
		}
		for(int i=0;i<(len-1)/4;i++) {
			if((char)s.charAt(((len+3)/2)+i-1)!=(char)s.charAt(len-1-i)){
				a=-1;
				break;
			}
		}
		if(a==0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int len = s.length();
		int a=0;
		for(int i=0;i<(len-1)/2;i++) {
			if((char)s.charAt(i)!=(char)s.charAt(len-1-i)) {
				a=-1;
				break;
			}
		}
		for(int i=0;i<(len-1)/4;i++) {
			if((char)s.charAt(i)!=(char)s.charAt(((len-1)/2)-i-1)) {
				a=-1;
				break;
			}
		}
		for(int i=0;i<(len-1)/4;i++) {
			if((char)s.charAt(((len+3)/2)+i-1)!=(char)s.charAt(len-1-i)){
				a=-1;
				break;
			}
		}
		if(a==0) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		
	}
}
