
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int len = s.length();
		String s1=s.substring(0, (len-1)/2);
		String s2=s.substring(((len+3)/2)-1,len);
		boolean ans1=check(s1);
		boolean ans2=check(s2);
		if(ans1&&ans2&&s1.equals(s2)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	}

	public boolean check(String s) {
		int n = s.length();
		for(int i=0; i<(n)/2; i++) {
			if( s.charAt(i) != (s.charAt(n-1-i))) {
				return false;
			}
		}
		return true;
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int len = s.length();
		String s1=s.substring(0, (len-1)/2);
		String s2=s.substring(((len+3)/2)-1,len);
		boolean ans1=check(s1);
		boolean ans2=check(s2);
		if(ans1&&ans2&&s1.equals(s2)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	}

	public boolean check(String s) {
		int n = s.length();
		for(int i=0; i<(n)/2; i++) {
			if( s.charAt(i) != (s.charAt(n-1-i))) {
				return false;
			}
		}
		return true;
	}
} Main public static void main(String[] args) {
		Main main = new Main();
		main.run();
	} main {
		Main main = new Main();
		main.run();
	} Main main = new Main(); main new Main() main.run() main.run main String[] args args public void run() {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int len = s.length();
		String s1=s.substring(0, (len-1)/2);
		String s2=s.substring(((len+3)/2)-1,len);
		boolean ans1=check(s1);
		boolean ans2=check(s2);
		if(ans1&&ans2&&s1.equals(s2)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	} run {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int len = s.length();
		String s1=s.substring(0, (len-1)/2);
		String s2=s.substring(((len+3)/2)-1,len);
		boolean ans1=check(s1);
		boolean ans2=check(s2);
		if(ans1&&ans2&&s1.equals(s2)) {
			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.next(); s sc.next() sc.next sc int len = s.length(); len s.length() s.length s String s1=s.substring(0, (len-1)/2); s1 s.substring(0, (len-1)/2) s.substring s 0 (len-1)/2 (len-1) len 1 2 String s2=s.substring(((len+3)/2)-1,len); s2 s.substring(((len+3)/2)-1,len) s.substring s ((len+3)/2)-1 ((len+3)/2) (len+3) len 3 2 1 len boolean ans1=check(s1); ans1 check(s1) check s1 boolean ans2=check(s2); ans2 check(s2) check s2 if(ans1&&ans2&&s1.equals(s2)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		} ans1&&ans2&&s1.equals(s2) ans1&&ans2&&s1.equals(s2) ans1 ans2 s1.equals(s2) s1.equals s1 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("No") System.out.println System.out System System.out "No" sc.close() sc.close sc public boolean check(String s) {
		int n = s.length();
		for(int i=0; i<(n)/2; i++) {
			if( s.charAt(i) != (s.charAt(n-1-i))) {
				return false;
			}
		}
		return true;
	} check {
		int n = s.length();
		for(int i=0; i<(n)/2; i++) {
			if( s.charAt(i) != (s.charAt(n-1-i))) {
				return false;
			}
		}
		return true;
	} int n = s.length(); n s.length() s.length s for(int i=0; i<(n)/2; i++) {
			if( s.charAt(i) != (s.charAt(n-1-i))) {
				return false;
			}
		} int i=0; int i=0; i 0 i<(n)/2 i (n)/2 (n) 2 i++ i++ i {
			if( s.charAt(i) != (s.charAt(n-1-i))) {
				return false;
			}
		} {
			if( s.charAt(i) != (s.charAt(n-1-i))) {
				return false;
			}
		} if( s.charAt(i) != (s.charAt(n-1-i))) {
				return false;
			} s.charAt(i) != (s.charAt(n-1-i)) s.charAt(i) s.charAt s i (s.charAt(n-1-i)) s.charAt s n-1-i n-1-i n 1 i {
				return false;
			} return false; false return true; true String s s public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int len = s.length();
		String s1=s.substring(0, (len-1)/2);
		String s2=s.substring(((len+3)/2)-1,len);
		boolean ans1=check(s1);
		boolean ans2=check(s2);
		if(ans1&&ans2&&s1.equals(s2)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	}

	public boolean check(String s) {
		int n = s.length();
		for(int i=0; i<(n)/2; i++) {
			if( s.charAt(i) != (s.charAt(n-1-i))) {
				return false;
			}
		}
		return true;
	}
} public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int len = s.length();
		String s1=s.substring(0, (len-1)/2);
		String s2=s.substring(((len+3)/2)-1,len);
		boolean ans1=check(s1);
		boolean ans2=check(s2);
		if(ans1&&ans2&&s1.equals(s2)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	}

	public boolean check(String s) {
		int n = s.length();
		for(int i=0; i<(n)/2; i++) {
			if( s.charAt(i) != (s.charAt(n-1-i))) {
				return false;
			}
		}
		return true;
	}
} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Main main = new Main();
		main.run();
	}

	public void run() {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int len = s.length();
		String s1=s.substring(0, (len-1)/2);
		String s2=s.substring(((len+3)/2)-1,len);
		boolean ans1=check(s1);
		boolean ans2=check(s2);
		if(ans1&&ans2&&s1.equals(s2)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
		sc.close();
	}

	public boolean check(String s) {
		int n = s.length();
		for(int i=0; i<(n)/2; i++) {
			if( s.charAt(i) != (s.charAt(n-1-i))) {
				return false;
			}
		}
		return true;
	}
}
