import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan= new Scanner(System.in);
		String s=scan.nextLine();
		int n=s.length();	
		StringBuilder s1=new StringBuilder(s.substring(0, (n-1)/2));
		StringBuilder s2=new StringBuilder(s.substring((n+1)/2,n));
		StringBuilder s3=new StringBuilder(s);
		s1.reverse();
		s2.reverse();
		s3.reverse();
		if(s.contains(s3) && s.substring(0, (n-1)/2).contains(s1) && s.substring((n+2)/2,n).contains(s2)) {
			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 scan= new Scanner(System.in);
		String s=scan.nextLine();
		int n=s.length();	
		StringBuilder s1=new StringBuilder(s.substring(0, (n-1)/2));
		StringBuilder s2=new StringBuilder(s.substring((n+1)/2,n));
		StringBuilder s3=new StringBuilder(s);
		s1.reverse();
		s2.reverse();
		s3.reverse();
		if(s.contains(s3) && s.substring(0, (n-1)/2).contains(s1) && s.substring((n+2)/2,n).contains(s2)) {
			System.out.println("Yes");
		}
		else System.out.println("No");
	}

} Main public static void main(String[] args) {
		Scanner scan= new Scanner(System.in);
		String s=scan.nextLine();
		int n=s.length();	
		StringBuilder s1=new StringBuilder(s.substring(0, (n-1)/2));
		StringBuilder s2=new StringBuilder(s.substring((n+1)/2,n));
		StringBuilder s3=new StringBuilder(s);
		s1.reverse();
		s2.reverse();
		s3.reverse();
		if(s.contains(s3) && s.substring(0, (n-1)/2).contains(s1) && s.substring((n+2)/2,n).contains(s2)) {
			System.out.println("Yes");
		}
		else System.out.println("No");
	} main {
		Scanner scan= new Scanner(System.in);
		String s=scan.nextLine();
		int n=s.length();	
		StringBuilder s1=new StringBuilder(s.substring(0, (n-1)/2));
		StringBuilder s2=new StringBuilder(s.substring((n+1)/2,n));
		StringBuilder s3=new StringBuilder(s);
		s1.reverse();
		s2.reverse();
		s3.reverse();
		if(s.contains(s3) && s.substring(0, (n-1)/2).contains(s1) && s.substring((n+2)/2,n).contains(s2)) {
			System.out.println("Yes");
		}
		else System.out.println("No");
	} Scanner scan= new Scanner(System.in); scan new Scanner(System.in) String s=scan.nextLine(); s scan.nextLine() scan.nextLine scan int n=s.length(); n s.length() s.length s StringBuilder s1=new StringBuilder(s.substring(0, (n-1)/2)); s1 new StringBuilder(s.substring(0, (n-1)/2)) StringBuilder s2=new StringBuilder(s.substring((n+1)/2,n)); s2 new StringBuilder(s.substring((n+1)/2,n)) StringBuilder s3=new StringBuilder(s); s3 new StringBuilder(s) s1.reverse() s1.reverse s1 s2.reverse() s2.reverse s2 s3.reverse() s3.reverse s3 if(s.contains(s3) && s.substring(0, (n-1)/2).contains(s1) && s.substring((n+2)/2,n).contains(s2)) {
			System.out.println("Yes");
		}
		else System.out.println("No"); s.contains(s3) && s.substring(0, (n-1)/2).contains(s1) && s.substring((n+2)/2,n).contains(s2) s.contains(s3) && s.substring(0, (n-1)/2).contains(s1) && s.substring((n+2)/2,n).contains(s2) s.contains(s3) s.contains s s3 s.substring(0, (n-1)/2).contains(s1) s.substring(0, (n-1)/2).contains s.substring(0, (n-1)/2) s.substring s 0 (n-1)/2 (n-1) n 1 2 s1 s.substring((n+2)/2,n).contains(s2) s.substring((n+2)/2,n).contains s.substring((n+2)/2,n) s.substring s (n+2)/2 (n+2) n 2 2 n s2 {
			System.out.println("Yes");
		} 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" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner scan= new Scanner(System.in);
		String s=scan.nextLine();
		int n=s.length();	
		StringBuilder s1=new StringBuilder(s.substring(0, (n-1)/2));
		StringBuilder s2=new StringBuilder(s.substring((n+1)/2,n));
		StringBuilder s3=new StringBuilder(s);
		s1.reverse();
		s2.reverse();
		s3.reverse();
		if(s.contains(s3) && s.substring(0, (n-1)/2).contains(s1) && s.substring((n+2)/2,n).contains(s2)) {
			System.out.println("Yes");
		}
		else System.out.println("No");
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan= new Scanner(System.in);
		String s=scan.nextLine();
		int n=s.length();	
		StringBuilder s1=new StringBuilder(s.substring(0, (n-1)/2));
		StringBuilder s2=new StringBuilder(s.substring((n+1)/2,n));
		StringBuilder s3=new StringBuilder(s);
		s1.reverse();
		s2.reverse();
		s3.reverse();
		if(s.contains(s3) && s.substring(0, (n-1)/2).contains(s1) && s.substring((n+2)/2,n).contains(s2)) {
			System.out.println("Yes");
		}
		else System.out.println("No");
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan= new Scanner(System.in);
		String s=scan.nextLine();
		int n=s.length();	
		StringBuilder s1=new StringBuilder(s.substring(0, (n-1)/2));
		StringBuilder s2=new StringBuilder(s.substring((n+1)/2,n));
		StringBuilder s3=new StringBuilder(s);
		s1.reverse();
		s2.reverse();
		s3.reverse();
		if(s.contains(s3) && s.substring(0, (n-1)/2).contains(s1) && s.substring((n+2)/2,n).contains(s2)) {
			System.out.println("Yes");
		}
		else System.out.println("No");
	}

}
