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();
    String answer = "Yes";

    if (n%2==0) {
      answer = "No";
    }else{
      String s1=s.substring(0,n/2);
      String s2=s.substring(n/2+1);

      if (s1.equals(s2)) {
        answer = "Yes";
        char[] chars = s1.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
      }else{
        answer = "No";
      }

    }


    System.out.println(answer);


  }
} 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();
    String answer = "Yes";

    if (n%2==0) {
      answer = "No";
    }else{
      String s1=s.substring(0,n/2);
      String s2=s.substring(n/2+1);

      if (s1.equals(s2)) {
        answer = "Yes";
        char[] chars = s1.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
      }else{
        answer = "No";
      }

    }


    System.out.println(answer);


  }
} Main public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    String s=sc.next();
    int n=s.length();
    String answer = "Yes";

    if (n%2==0) {
      answer = "No";
    }else{
      String s1=s.substring(0,n/2);
      String s2=s.substring(n/2+1);

      if (s1.equals(s2)) {
        answer = "Yes";
        char[] chars = s1.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
      }else{
        answer = "No";
      }

    }


    System.out.println(answer);


  } main {
    Scanner sc=new Scanner(System.in);
    String s=sc.next();
    int n=s.length();
    String answer = "Yes";

    if (n%2==0) {
      answer = "No";
    }else{
      String s1=s.substring(0,n/2);
      String s2=s.substring(n/2+1);

      if (s1.equals(s2)) {
        answer = "Yes";
        char[] chars = s1.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
      }else{
        answer = "No";
      }

    }


    System.out.println(answer);


  } 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 String answer = "Yes"; answer "Yes" if (n%2==0) {
      answer = "No";
    }else{
      String s1=s.substring(0,n/2);
      String s2=s.substring(n/2+1);

      if (s1.equals(s2)) {
        answer = "Yes";
        char[] chars = s1.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
      }else{
        answer = "No";
      }

    } n%2==0 n%2 n 2 0 {
      answer = "No";
    } answer = "No" answer "No" {
      String s1=s.substring(0,n/2);
      String s2=s.substring(n/2+1);

      if (s1.equals(s2)) {
        answer = "Yes";
        char[] chars = s1.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
      }else{
        answer = "No";
      }

    } String s1=s.substring(0,n/2); s1 s.substring(0,n/2) s.substring s 0 n/2 n 2 String s2=s.substring(n/2+1); s2 s.substring(n/2+1) s.substring s n/2+1 n/2 n 2 1 if (s1.equals(s2)) {
        answer = "Yes";
        char[] chars = s1.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
      }else{
        answer = "No";
      } s1.equals(s2) s1.equals s1 s2 {
        answer = "Yes";
        char[] chars = s1.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
      } answer = "Yes" answer "Yes" char[] chars = s1.toCharArray(); chars s1.toCharArray() s1.toCharArray s1 for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                } int i = 0; int i = 0; i 0 i < chars.length / 2 i chars.length / 2 chars.length chars chars.length 2 i++ i++ i {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                } {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                } if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    } chars[i] != chars[chars.length - (i + 1)] chars[i] chars i chars[chars.length - (i + 1)] chars chars.length - (i + 1) chars.length chars chars.length (i + 1) i 1 {
                        answer = "No";
                        break;
                    } answer = "No" answer "No" break; {
        answer = "No";
      } answer = "No" answer "No" System.out.println(answer) System.out.println System.out System System.out answer 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();
    String answer = "Yes";

    if (n%2==0) {
      answer = "No";
    }else{
      String s1=s.substring(0,n/2);
      String s2=s.substring(n/2+1);

      if (s1.equals(s2)) {
        answer = "Yes";
        char[] chars = s1.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
      }else{
        answer = "No";
      }

    }


    System.out.println(answer);


  }
} public class Main{
  public static void main(String[] args) {
    Scanner sc=new Scanner(System.in);
    String s=sc.next();
    int n=s.length();
    String answer = "Yes";

    if (n%2==0) {
      answer = "No";
    }else{
      String s1=s.substring(0,n/2);
      String s2=s.substring(n/2+1);

      if (s1.equals(s2)) {
        answer = "Yes";
        char[] chars = s1.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
      }else{
        answer = "No";
      }

    }


    System.out.println(answer);


  }
} Main
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();
    String answer = "Yes";

    if (n%2==0) {
      answer = "No";
    }else{
      String s1=s.substring(0,n/2);
      String s2=s.substring(n/2+1);

      if (s1.equals(s2)) {
        answer = "Yes";
        char[] chars = s1.toCharArray();
                for (int i = 0; i < chars.length / 2; i++) {
                    if (chars[i] != chars[chars.length - (i + 1)]) {
                        answer = "No";
                        break;
                    }
                }
      }else{
        answer = "No";
      }

    }


    System.out.println(answer);


  }
}
