import java.io.*;
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int n = s.length();
		int n1 = n / 2;
		String s1 = s.substring( 0 , n1);
		String s2 = s.substring(n1 + 1);
		int i=0;
		int j = n-1;
		boolean c1 = true;
		while(i < j){
		    if(s.charAt(i) != s.charAt(j)){
		        c1 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		i =0;
		j = s1.length()-1;
		boolean c2 = true;
        while(i < j){
		    if(s1.charAt(i) != s1.charAt(j)){
		        c2 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		i = 0;
		j = s2.length()-1 ;
		boolean c3 = true;
        while(i < j){
		    if(s2.charAt(i) != s2.charAt(j)){
		        c3 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		if(c1&&c2&&c3){
		    System.out.println("Yes");
		}else{
		    System.out.println("No");
		}
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int n = s.length();
		int n1 = n / 2;
		String s1 = s.substring( 0 , n1);
		String s2 = s.substring(n1 + 1);
		int i=0;
		int j = n-1;
		boolean c1 = true;
		while(i < j){
		    if(s.charAt(i) != s.charAt(j)){
		        c1 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		i =0;
		j = s1.length()-1;
		boolean c2 = true;
        while(i < j){
		    if(s1.charAt(i) != s1.charAt(j)){
		        c2 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		i = 0;
		j = s2.length()-1 ;
		boolean c3 = true;
        while(i < j){
		    if(s2.charAt(i) != s2.charAt(j)){
		        c3 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		if(c1&&c2&&c3){
		    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 n = s.length();
		int n1 = n / 2;
		String s1 = s.substring( 0 , n1);
		String s2 = s.substring(n1 + 1);
		int i=0;
		int j = n-1;
		boolean c1 = true;
		while(i < j){
		    if(s.charAt(i) != s.charAt(j)){
		        c1 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		i =0;
		j = s1.length()-1;
		boolean c2 = true;
        while(i < j){
		    if(s1.charAt(i) != s1.charAt(j)){
		        c2 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		i = 0;
		j = s2.length()-1 ;
		boolean c3 = true;
        while(i < j){
		    if(s2.charAt(i) != s2.charAt(j)){
		        c3 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		if(c1&&c2&&c3){
		    System.out.println("Yes");
		}else{
		    System.out.println("No");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int n = s.length();
		int n1 = n / 2;
		String s1 = s.substring( 0 , n1);
		String s2 = s.substring(n1 + 1);
		int i=0;
		int j = n-1;
		boolean c1 = true;
		while(i < j){
		    if(s.charAt(i) != s.charAt(j)){
		        c1 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		i =0;
		j = s1.length()-1;
		boolean c2 = true;
        while(i < j){
		    if(s1.charAt(i) != s1.charAt(j)){
		        c2 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		i = 0;
		j = s2.length()-1 ;
		boolean c3 = true;
        while(i < j){
		    if(s2.charAt(i) != s2.charAt(j)){
		        c3 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		if(c1&&c2&&c3){
		    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 n = s.length(); n s.length() s.length s int n1 = n / 2; n1 n / 2 n 2 String s1 = s.substring( 0 , n1); s1 s.substring( 0 , n1) s.substring s 0 n1 String s2 = s.substring(n1 + 1); s2 s.substring(n1 + 1) s.substring s n1 + 1 n1 1 int i=0; i 0 int j = n-1; j n-1 n 1 boolean c1 = true; c1 true while(i < j){
		    if(s.charAt(i) != s.charAt(j)){
		        c1 = false;
		        break;
		    }
		    i++;
		    j--;
		} i < j i j {
		    if(s.charAt(i) != s.charAt(j)){
		        c1 = false;
		        break;
		    }
		    i++;
		    j--;
		} if(s.charAt(i) != s.charAt(j)){
		        c1 = false;
		        break;
		    } s.charAt(i) != s.charAt(j) s.charAt(i) s.charAt s i s.charAt(j) s.charAt s j {
		        c1 = false;
		        break;
		    } c1 = false c1 false break; i++ i j-- j i =0 i 0 j = s1.length()-1 j s1.length()-1 s1.length() s1.length s1 1 boolean c2 = true; c2 true while(i < j){
		    if(s1.charAt(i) != s1.charAt(j)){
		        c2 = false;
		        break;
		    }
		    i++;
		    j--;
		} i < j i j {
		    if(s1.charAt(i) != s1.charAt(j)){
		        c2 = false;
		        break;
		    }
		    i++;
		    j--;
		} if(s1.charAt(i) != s1.charAt(j)){
		        c2 = false;
		        break;
		    } s1.charAt(i) != s1.charAt(j) s1.charAt(i) s1.charAt s1 i s1.charAt(j) s1.charAt s1 j {
		        c2 = false;
		        break;
		    } c2 = false c2 false break; i++ i j-- j i = 0 i 0 j = s2.length()-1 j s2.length()-1 s2.length() s2.length s2 1 boolean c3 = true; c3 true while(i < j){
		    if(s2.charAt(i) != s2.charAt(j)){
		        c3 = false;
		        break;
		    }
		    i++;
		    j--;
		} i < j i j {
		    if(s2.charAt(i) != s2.charAt(j)){
		        c3 = false;
		        break;
		    }
		    i++;
		    j--;
		} if(s2.charAt(i) != s2.charAt(j)){
		        c3 = false;
		        break;
		    } s2.charAt(i) != s2.charAt(j) s2.charAt(i) s2.charAt s2 i s2.charAt(j) s2.charAt s2 j {
		        c3 = false;
		        break;
		    } c3 = false c3 false break; i++ i j-- j if(c1&&c2&&c3){
		    System.out.println("Yes");
		}else{
		    System.out.println("No");
		} c1&&c2&&c3 c1&&c2&&c3 c1 c2 c3 {
		    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 n = s.length();
		int n1 = n / 2;
		String s1 = s.substring( 0 , n1);
		String s2 = s.substring(n1 + 1);
		int i=0;
		int j = n-1;
		boolean c1 = true;
		while(i < j){
		    if(s.charAt(i) != s.charAt(j)){
		        c1 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		i =0;
		j = s1.length()-1;
		boolean c2 = true;
        while(i < j){
		    if(s1.charAt(i) != s1.charAt(j)){
		        c2 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		i = 0;
		j = s2.length()-1 ;
		boolean c3 = true;
        while(i < j){
		    if(s2.charAt(i) != s2.charAt(j)){
		        c3 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		if(c1&&c2&&c3){
		    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 n = s.length();
		int n1 = n / 2;
		String s1 = s.substring( 0 , n1);
		String s2 = s.substring(n1 + 1);
		int i=0;
		int j = n-1;
		boolean c1 = true;
		while(i < j){
		    if(s.charAt(i) != s.charAt(j)){
		        c1 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		i =0;
		j = s1.length()-1;
		boolean c2 = true;
        while(i < j){
		    if(s1.charAt(i) != s1.charAt(j)){
		        c2 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		i = 0;
		j = s2.length()-1 ;
		boolean c3 = true;
        while(i < j){
		    if(s2.charAt(i) != s2.charAt(j)){
		        c3 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		if(c1&&c2&&c3){
		    System.out.println("Yes");
		}else{
		    System.out.println("No");
		}
	}
} Main
import java.io.*;
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int n = s.length();
		int n1 = n / 2;
		String s1 = s.substring( 0 , n1);
		String s2 = s.substring(n1 + 1);
		int i=0;
		int j = n-1;
		boolean c1 = true;
		while(i < j){
		    if(s.charAt(i) != s.charAt(j)){
		        c1 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		i =0;
		j = s1.length()-1;
		boolean c2 = true;
        while(i < j){
		    if(s1.charAt(i) != s1.charAt(j)){
		        c2 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		i = 0;
		j = s2.length()-1 ;
		boolean c3 = true;
        while(i < j){
		    if(s2.charAt(i) != s2.charAt(j)){
		        c3 = false;
		        break;
		    }
		    i++;
		    j--;
		}
		if(c1&&c2&&c3){
		    System.out.println("Yes");
		}else{
		    System.out.println("No");
		}
	}
}
