/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

import java.util.Scanner;

/**
 *
 * @author wnqmw
 */
public class Main {
    public static void main(String args[]) {
        Scanner kb = new Scanner(System.in);
        
        String k = kb.nextLine();
        boolean fin = false;
        int i = 0;
        int j = k.length()-1;
        
        while(i <= j){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        i = 0;
        j = (k.length()-1)/2-1;
        while(i <= j && fin != true){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        i = (k.length()+3)/2-1;
        j = k.length()-1;
        while(i <= j && fin != true){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        if(fin == false){
            System.out.println("Yes");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]) {
        Scanner kb = new Scanner(System.in);
        
        String k = kb.nextLine();
        boolean fin = false;
        int i = 0;
        int j = k.length()-1;
        
        while(i <= j){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        i = 0;
        j = (k.length()-1)/2-1;
        while(i <= j && fin != true){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        i = (k.length()+3)/2-1;
        j = k.length()-1;
        while(i <= j && fin != true){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        if(fin == false){
            System.out.println("Yes");
        }
    }
} Main public static void main(String args[]) {
        Scanner kb = new Scanner(System.in);
        
        String k = kb.nextLine();
        boolean fin = false;
        int i = 0;
        int j = k.length()-1;
        
        while(i <= j){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        i = 0;
        j = (k.length()-1)/2-1;
        while(i <= j && fin != true){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        i = (k.length()+3)/2-1;
        j = k.length()-1;
        while(i <= j && fin != true){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        if(fin == false){
            System.out.println("Yes");
        }
    } main {
        Scanner kb = new Scanner(System.in);
        
        String k = kb.nextLine();
        boolean fin = false;
        int i = 0;
        int j = k.length()-1;
        
        while(i <= j){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        i = 0;
        j = (k.length()-1)/2-1;
        while(i <= j && fin != true){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        i = (k.length()+3)/2-1;
        j = k.length()-1;
        while(i <= j && fin != true){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        if(fin == false){
            System.out.println("Yes");
        }
    } Scanner kb = new Scanner(System.in); kb new Scanner(System.in) String k = kb.nextLine(); k kb.nextLine() kb.nextLine kb boolean fin = false; fin false int i = 0; i 0 int j = k.length()-1; j k.length()-1 k.length() k.length k 1 while(i <= j){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        } i <= j i j {
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        } if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            } k.charAt(i) != k.charAt(j) k.charAt(i) k.charAt k i k.charAt(j) k.charAt k j {
                System.out.println("No");
                fin = true;
                break;
            } System.out.println("No") System.out.println System.out System System.out "No" fin = true fin true break; i++ i j-- j i = 0 i 0 j = (k.length()-1)/2-1 j (k.length()-1)/2-1 (k.length()-1)/2 (k.length()-1) k.length() k.length k 1 2 1 while(i <= j && fin != true){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        } i <= j && fin != true i <= j i j fin != true fin true {
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        } if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            } k.charAt(i) != k.charAt(j) k.charAt(i) k.charAt k i k.charAt(j) k.charAt k j {
                System.out.println("No");
                fin = true;
                break;
            } System.out.println("No") System.out.println System.out System System.out "No" fin = true fin true break; i++ i j-- j i = (k.length()+3)/2-1 i (k.length()+3)/2-1 (k.length()+3)/2 (k.length()+3) k.length() k.length k 3 2 1 j = k.length()-1 j k.length()-1 k.length() k.length k 1 while(i <= j && fin != true){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        } i <= j && fin != true i <= j i j fin != true fin true {
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        } if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            } k.charAt(i) != k.charAt(j) k.charAt(i) k.charAt k i k.charAt(j) k.charAt k j {
                System.out.println("No");
                fin = true;
                break;
            } System.out.println("No") System.out.println System.out System System.out "No" fin = true fin true break; i++ i j-- j if(fin == false){
            System.out.println("Yes");
        } fin == false fin false {
            System.out.println("Yes");
        } System.out.println("Yes") System.out.println System.out System System.out "Yes" String args[] args public class Main {
    public static void main(String args[]) {
        Scanner kb = new Scanner(System.in);
        
        String k = kb.nextLine();
        boolean fin = false;
        int i = 0;
        int j = k.length()-1;
        
        while(i <= j){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        i = 0;
        j = (k.length()-1)/2-1;
        while(i <= j && fin != true){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        i = (k.length()+3)/2-1;
        j = k.length()-1;
        while(i <= j && fin != true){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        if(fin == false){
            System.out.println("Yes");
        }
    }
} public class Main {
    public static void main(String args[]) {
        Scanner kb = new Scanner(System.in);
        
        String k = kb.nextLine();
        boolean fin = false;
        int i = 0;
        int j = k.length()-1;
        
        while(i <= j){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        i = 0;
        j = (k.length()-1)/2-1;
        while(i <= j && fin != true){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        i = (k.length()+3)/2-1;
        j = k.length()-1;
        while(i <= j && fin != true){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        if(fin == false){
            System.out.println("Yes");
        }
    }
} Main
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

import java.util.Scanner;

/**
 *
 * @author wnqmw
 */
public class Main {
    public static void main(String args[]) {
        Scanner kb = new Scanner(System.in);
        
        String k = kb.nextLine();
        boolean fin = false;
        int i = 0;
        int j = k.length()-1;
        
        while(i <= j){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        i = 0;
        j = (k.length()-1)/2-1;
        while(i <= j && fin != true){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        i = (k.length()+3)/2-1;
        j = k.length()-1;
        while(i <= j && fin != true){
            if(k.charAt(i) != k.charAt(j)){
                System.out.println("No");
                fin = true;
                break;
            }
            i++;
            j--;
        }
        if(fin == false){
            System.out.println("Yes");
        }
    }
}
