import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		String S = input.next();
		int N=S.length();
		char[] a;
		char[] b;
		int check=0;
		
		String x,y;
		x=S.substring(0,N/2);
		y=S.substring(N/2+1,N);
		if(x.equals(y)) {
			check++;
		}
		a=x.toCharArray();
		b=y.toCharArray();
		
		for(int i=0;i<x.length()/2;i++) {
			if(a[i]!=a[a.length-(i+1)]) {
				check--;
			}
		}
		for(int i=0;i<y.length()/2;i++) {
			if(b[i]!=b[b.length-(i+1)]) {
				check--;
			}
		}
		
		if(check==1) {
			System.out.println("Yes");
	    }else{
	    	System.out.println("No");
	    }		
	}		
}
	
 import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		String S = input.next();
		int N=S.length();
		char[] a;
		char[] b;
		int check=0;
		
		String x,y;
		x=S.substring(0,N/2);
		y=S.substring(N/2+1,N);
		if(x.equals(y)) {
			check++;
		}
		a=x.toCharArray();
		b=y.toCharArray();
		
		for(int i=0;i<x.length()/2;i++) {
			if(a[i]!=a[a.length-(i+1)]) {
				check--;
			}
		}
		for(int i=0;i<y.length()/2;i++) {
			if(b[i]!=b[b.length-(i+1)]) {
				check--;
			}
		}
		
		if(check==1) {
			System.out.println("Yes");
	    }else{
	    	System.out.println("No");
	    }		
	}		
} Main public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		String S = input.next();
		int N=S.length();
		char[] a;
		char[] b;
		int check=0;
		
		String x,y;
		x=S.substring(0,N/2);
		y=S.substring(N/2+1,N);
		if(x.equals(y)) {
			check++;
		}
		a=x.toCharArray();
		b=y.toCharArray();
		
		for(int i=0;i<x.length()/2;i++) {
			if(a[i]!=a[a.length-(i+1)]) {
				check--;
			}
		}
		for(int i=0;i<y.length()/2;i++) {
			if(b[i]!=b[b.length-(i+1)]) {
				check--;
			}
		}
		
		if(check==1) {
			System.out.println("Yes");
	    }else{
	    	System.out.println("No");
	    }		
	} main {
		Scanner input = new Scanner(System.in);
		String S = input.next();
		int N=S.length();
		char[] a;
		char[] b;
		int check=0;
		
		String x,y;
		x=S.substring(0,N/2);
		y=S.substring(N/2+1,N);
		if(x.equals(y)) {
			check++;
		}
		a=x.toCharArray();
		b=y.toCharArray();
		
		for(int i=0;i<x.length()/2;i++) {
			if(a[i]!=a[a.length-(i+1)]) {
				check--;
			}
		}
		for(int i=0;i<y.length()/2;i++) {
			if(b[i]!=b[b.length-(i+1)]) {
				check--;
			}
		}
		
		if(check==1) {
			System.out.println("Yes");
	    }else{
	    	System.out.println("No");
	    }		
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) String S = input.next(); S input.next() input.next input int N=S.length(); N S.length() S.length S char[] a; a char[] b; b int check=0; check 0 String x x y; y x=S.substring(0,N/2) x S.substring(0,N/2) S.substring S 0 N/2 N 2 y=S.substring(N/2+1,N) y S.substring(N/2+1,N) S.substring S N/2+1 N/2 N 2 1 N if(x.equals(y)) {
			check++;
		} x.equals(y) x.equals x y {
			check++;
		} check++ check a=x.toCharArray() a x.toCharArray() x.toCharArray x b=y.toCharArray() b y.toCharArray() y.toCharArray y for(int i=0;i<x.length()/2;i++) {
			if(a[i]!=a[a.length-(i+1)]) {
				check--;
			}
		} int i=0; int i=0; i 0 i<x.length()/2 i x.length()/2 x.length() x.length x 2 i++ i++ i {
			if(a[i]!=a[a.length-(i+1)]) {
				check--;
			}
		} {
			if(a[i]!=a[a.length-(i+1)]) {
				check--;
			}
		} if(a[i]!=a[a.length-(i+1)]) {
				check--;
			} a[i]!=a[a.length-(i+1)] a[i] a i a[a.length-(i+1)] a a.length-(i+1) a.length a a.length (i+1) i 1 {
				check--;
			} check-- check for(int i=0;i<y.length()/2;i++) {
			if(b[i]!=b[b.length-(i+1)]) {
				check--;
			}
		} int i=0; int i=0; i 0 i<y.length()/2 i y.length()/2 y.length() y.length y 2 i++ i++ i {
			if(b[i]!=b[b.length-(i+1)]) {
				check--;
			}
		} {
			if(b[i]!=b[b.length-(i+1)]) {
				check--;
			}
		} if(b[i]!=b[b.length-(i+1)]) {
				check--;
			} b[i]!=b[b.length-(i+1)] b[i] b i b[b.length-(i+1)] b b.length-(i+1) b.length b b.length (i+1) i 1 {
				check--;
			} check-- check if(check==1) {
			System.out.println("Yes");
	    }else{
	    	System.out.println("No");
	    } check==1 check 1 {
			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 input = new Scanner(System.in);
		String S = input.next();
		int N=S.length();
		char[] a;
		char[] b;
		int check=0;
		
		String x,y;
		x=S.substring(0,N/2);
		y=S.substring(N/2+1,N);
		if(x.equals(y)) {
			check++;
		}
		a=x.toCharArray();
		b=y.toCharArray();
		
		for(int i=0;i<x.length()/2;i++) {
			if(a[i]!=a[a.length-(i+1)]) {
				check--;
			}
		}
		for(int i=0;i<y.length()/2;i++) {
			if(b[i]!=b[b.length-(i+1)]) {
				check--;
			}
		}
		
		if(check==1) {
			System.out.println("Yes");
	    }else{
	    	System.out.println("No");
	    }		
	}		
} public class Main {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		String S = input.next();
		int N=S.length();
		char[] a;
		char[] b;
		int check=0;
		
		String x,y;
		x=S.substring(0,N/2);
		y=S.substring(N/2+1,N);
		if(x.equals(y)) {
			check++;
		}
		a=x.toCharArray();
		b=y.toCharArray();
		
		for(int i=0;i<x.length()/2;i++) {
			if(a[i]!=a[a.length-(i+1)]) {
				check--;
			}
		}
		for(int i=0;i<y.length()/2;i++) {
			if(b[i]!=b[b.length-(i+1)]) {
				check--;
			}
		}
		
		if(check==1) {
			System.out.println("Yes");
	    }else{
	    	System.out.println("No");
	    }		
	}		
} Main
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		String S = input.next();
		int N=S.length();
		char[] a;
		char[] b;
		int check=0;
		
		String x,y;
		x=S.substring(0,N/2);
		y=S.substring(N/2+1,N);
		if(x.equals(y)) {
			check++;
		}
		a=x.toCharArray();
		b=y.toCharArray();
		
		for(int i=0;i<x.length()/2;i++) {
			if(a[i]!=a[a.length-(i+1)]) {
				check--;
			}
		}
		for(int i=0;i<y.length()/2;i++) {
			if(b[i]!=b[b.length-(i+1)]) {
				check--;
			}
		}
		
		if(check==1) {
			System.out.println("Yes");
	    }else{
	    	System.out.println("No");
	    }		
	}		
}
	

