import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in); 
		String s = sc.nextLine(); 
		if (s.length()%2==0) {
			System.out.println("Yes");
			return; 
		}
		int N = s.length(); 
		String s1 = s.substring(0, (N-1)/2);
		String s2 = s.substring((N+3)/2-1, N); 
		String res = s2 + s.charAt((N+1)/2-1) + s1; 
		if (res.equals(s)) System.out.println("Yes");
		else System.out.println("No");
		sc.close();
	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in); 
		String s = sc.nextLine(); 
		if (s.length()%2==0) {
			System.out.println("Yes");
			return; 
		}
		int N = s.length(); 
		String s1 = s.substring(0, (N-1)/2);
		String s2 = s.substring((N+3)/2-1, N); 
		String res = s2 + s.charAt((N+1)/2-1) + s1; 
		if (res.equals(s)) System.out.println("Yes");
		else System.out.println("No");
		sc.close();
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in); 
		String s = sc.nextLine(); 
		if (s.length()%2==0) {
			System.out.println("Yes");
			return; 
		}
		int N = s.length(); 
		String s1 = s.substring(0, (N-1)/2);
		String s2 = s.substring((N+3)/2-1, N); 
		String res = s2 + s.charAt((N+1)/2-1) + s1; 
		if (res.equals(s)) System.out.println("Yes");
		else System.out.println("No");
		sc.close();
	} main {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in); 
		String s = sc.nextLine(); 
		if (s.length()%2==0) {
			System.out.println("Yes");
			return; 
		}
		int N = s.length(); 
		String s1 = s.substring(0, (N-1)/2);
		String s2 = s.substring((N+3)/2-1, N); 
		String res = s2 + s.charAt((N+1)/2-1) + s1; 
		if (res.equals(s)) System.out.println("Yes");
		else System.out.println("No");
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc if (s.length()%2==0) {
			System.out.println("Yes");
			return; 
		} s.length()%2==0 s.length()%2 s.length() s.length s 2 0 {
			System.out.println("Yes");
			return; 
		} System.out.println("Yes") System.out.println System.out System System.out "Yes" return; int N = s.length(); N s.length() s.length s String s1 = s.substring(0, (N-1)/2); s1 s.substring(0, (N-1)/2) s.substring s 0 (N-1)/2 (N-1) N 1 2 String s2 = s.substring((N+3)/2-1, N); s2 s.substring((N+3)/2-1, N) s.substring s (N+3)/2-1 (N+3)/2 (N+3) N 3 2 1 N String res = s2 + s.charAt((N+1)/2-1) + s1; res s2 + s.charAt((N+1)/2-1) + s1 s2 + s.charAt((N+1)/2-1) + s1 s2 s.charAt((N+1)/2-1) s.charAt s (N+1)/2-1 (N+1)/2 (N+1) N 1 2 1 s1 if (res.equals(s)) System.out.println("Yes");
		else System.out.println("No"); res.equals(s) res.equals res s 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" sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in); 
		String s = sc.nextLine(); 
		if (s.length()%2==0) {
			System.out.println("Yes");
			return; 
		}
		int N = s.length(); 
		String s1 = s.substring(0, (N-1)/2);
		String s2 = s.substring((N+3)/2-1, N); 
		String res = s2 + s.charAt((N+1)/2-1) + s1; 
		if (res.equals(s)) System.out.println("Yes");
		else System.out.println("No");
		sc.close();
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in); 
		String s = sc.nextLine(); 
		if (s.length()%2==0) {
			System.out.println("Yes");
			return; 
		}
		int N = s.length(); 
		String s1 = s.substring(0, (N-1)/2);
		String s2 = s.substring((N+3)/2-1, N); 
		String res = s2 + s.charAt((N+1)/2-1) + s1; 
		if (res.equals(s)) System.out.println("Yes");
		else System.out.println("No");
		sc.close();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in); 
		String s = sc.nextLine(); 
		if (s.length()%2==0) {
			System.out.println("Yes");
			return; 
		}
		int N = s.length(); 
		String s1 = s.substring(0, (N-1)/2);
		String s2 = s.substring((N+3)/2-1, N); 
		String res = s2 + s.charAt((N+1)/2-1) + s1; 
		if (res.equals(s)) System.out.println("Yes");
		else System.out.println("No");
		sc.close();
	}

}