import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        String str;
        Scanner sc = new Scanner(System.in);
        str = sc.nextLine();
        int N = str.length();
        String sub1 = str.substring(0,N/2);
        String sub2 = str.substring(((N+3)/2) -1  , N);
        System.out.println(sub1.equals(sub2)  ? "Yes" : "No");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        String str;
        Scanner sc = new Scanner(System.in);
        str = sc.nextLine();
        int N = str.length();
        String sub1 = str.substring(0,N/2);
        String sub2 = str.substring(((N+3)/2) -1  , N);
        System.out.println(sub1.equals(sub2)  ? "Yes" : "No");
    }
} Main public static void main(String[] args) {
        String str;
        Scanner sc = new Scanner(System.in);
        str = sc.nextLine();
        int N = str.length();
        String sub1 = str.substring(0,N/2);
        String sub2 = str.substring(((N+3)/2) -1  , N);
        System.out.println(sub1.equals(sub2)  ? "Yes" : "No");
    } main {
        String str;
        Scanner sc = new Scanner(System.in);
        str = sc.nextLine();
        int N = str.length();
        String sub1 = str.substring(0,N/2);
        String sub2 = str.substring(((N+3)/2) -1  , N);
        System.out.println(sub1.equals(sub2)  ? "Yes" : "No");
    } String str; str Scanner sc = new Scanner(System.in); sc new Scanner(System.in) str = sc.nextLine() str sc.nextLine() sc.nextLine sc int N = str.length(); N str.length() str.length str String sub1 = str.substring(0,N/2); sub1 str.substring(0,N/2) str.substring str 0 N/2 N 2 String sub2 = str.substring(((N+3)/2) -1  , N); sub2 str.substring(((N+3)/2) -1  , N) str.substring str ((N+3)/2) -1 ((N+3)/2) (N+3) N 3 2 1 N System.out.println(sub1.equals(sub2)  ? "Yes" : "No") System.out.println System.out System System.out sub1.equals(sub2)  ? "Yes" : "No" sub1.equals(sub2) sub1.equals sub1 sub2 "Yes" "No" String[] args args public class Main {
    public static void main(String[] args) {
        String str;
        Scanner sc = new Scanner(System.in);
        str = sc.nextLine();
        int N = str.length();
        String sub1 = str.substring(0,N/2);
        String sub2 = str.substring(((N+3)/2) -1  , N);
        System.out.println(sub1.equals(sub2)  ? "Yes" : "No");
    }
} public class Main {
    public static void main(String[] args) {
        String str;
        Scanner sc = new Scanner(System.in);
        str = sc.nextLine();
        int N = str.length();
        String sub1 = str.substring(0,N/2);
        String sub2 = str.substring(((N+3)/2) -1  , N);
        System.out.println(sub1.equals(sub2)  ? "Yes" : "No");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        String str;
        Scanner sc = new Scanner(System.in);
        str = sc.nextLine();
        int N = str.length();
        String sub1 = str.substring(0,N/2);
        String sub2 = str.substring(((N+3)/2) -1  , N);
        System.out.println(sub1.equals(sub2)  ? "Yes" : "No");
    }
}
