import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    String a = scan.next();
    int b = a.length();
    int c = (int) (b-1)/2;
    int d = (int) (b+3)/2;

    boolean a1 = check(a,0,b-1);
    boolean a2 = check(a,0,c-1);
    boolean a3 = check(a,d-1,b-1);

    if ((a1 == false) || (a2 == false) || (a3 == false)){
      System.out.println("No");
    }
    else{
      System.out.println("Yes");
    }


  }

  public static boolean check(String a, int b, int c){
    for (int i=b;i<c;i++){
      if (a.charAt(i) != a.charAt(c-i)){
        return false;
      }
    }
    return true;
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    String a = scan.next();
    int b = a.length();
    int c = (int) (b-1)/2;
    int d = (int) (b+3)/2;

    boolean a1 = check(a,0,b-1);
    boolean a2 = check(a,0,c-1);
    boolean a3 = check(a,d-1,b-1);

    if ((a1 == false) || (a2 == false) || (a3 == false)){
      System.out.println("No");
    }
    else{
      System.out.println("Yes");
    }


  }

  public static boolean check(String a, int b, int c){
    for (int i=b;i<c;i++){
      if (a.charAt(i) != a.charAt(c-i)){
        return false;
      }
    }
    return true;
  }
} Main public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    String a = scan.next();
    int b = a.length();
    int c = (int) (b-1)/2;
    int d = (int) (b+3)/2;

    boolean a1 = check(a,0,b-1);
    boolean a2 = check(a,0,c-1);
    boolean a3 = check(a,d-1,b-1);

    if ((a1 == false) || (a2 == false) || (a3 == false)){
      System.out.println("No");
    }
    else{
      System.out.println("Yes");
    }


  } main {
    Scanner scan = new Scanner(System.in);
    String a = scan.next();
    int b = a.length();
    int c = (int) (b-1)/2;
    int d = (int) (b+3)/2;

    boolean a1 = check(a,0,b-1);
    boolean a2 = check(a,0,c-1);
    boolean a3 = check(a,d-1,b-1);

    if ((a1 == false) || (a2 == false) || (a3 == false)){
      System.out.println("No");
    }
    else{
      System.out.println("Yes");
    }


  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String a = scan.next(); a scan.next() scan.next scan int b = a.length(); b a.length() a.length a int c = (int) (b-1)/2; c (int) (b-1)/2 (int) (b-1) b 1 2 int d = (int) (b+3)/2; d (int) (b+3)/2 (int) (b+3) b 3 2 boolean a1 = check(a,0,b-1); a1 check(a,0,b-1) check a 0 b-1 b 1 boolean a2 = check(a,0,c-1); a2 check(a,0,c-1) check a 0 c-1 c 1 boolean a3 = check(a,d-1,b-1); a3 check(a,d-1,b-1) check a d-1 d 1 b-1 b 1 if ((a1 == false) || (a2 == false) || (a3 == false)){
      System.out.println("No");
    }
    else{
      System.out.println("Yes");
    } (a1 == false) || (a2 == false) || (a3 == false) (a1 == false) || (a2 == false) || (a3 == false) (a1 == false) a1 false (a2 == false) a2 false (a3 == false) a3 false {
      System.out.println("No");
    } System.out.println("No") System.out.println System.out System System.out "No" {
      System.out.println("Yes");
    } System.out.println("Yes") System.out.println System.out System System.out "Yes" String[] args args public static boolean check(String a, int b, int c){
    for (int i=b;i<c;i++){
      if (a.charAt(i) != a.charAt(c-i)){
        return false;
      }
    }
    return true;
  } check {
    for (int i=b;i<c;i++){
      if (a.charAt(i) != a.charAt(c-i)){
        return false;
      }
    }
    return true;
  } for (int i=b;i<c;i++){
      if (a.charAt(i) != a.charAt(c-i)){
        return false;
      }
    } int i=b; int i=b; i b i<c i c i++ i++ i {
      if (a.charAt(i) != a.charAt(c-i)){
        return false;
      }
    } {
      if (a.charAt(i) != a.charAt(c-i)){
        return false;
      }
    } if (a.charAt(i) != a.charAt(c-i)){
        return false;
      } a.charAt(i) != a.charAt(c-i) a.charAt(i) a.charAt a i a.charAt(c-i) a.charAt a c-i c i {
        return false;
      } return false; false return true; true String a a int b b int c c public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    String a = scan.next();
    int b = a.length();
    int c = (int) (b-1)/2;
    int d = (int) (b+3)/2;

    boolean a1 = check(a,0,b-1);
    boolean a2 = check(a,0,c-1);
    boolean a3 = check(a,d-1,b-1);

    if ((a1 == false) || (a2 == false) || (a3 == false)){
      System.out.println("No");
    }
    else{
      System.out.println("Yes");
    }


  }

  public static boolean check(String a, int b, int c){
    for (int i=b;i<c;i++){
      if (a.charAt(i) != a.charAt(c-i)){
        return false;
      }
    }
    return true;
  }
} public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    String a = scan.next();
    int b = a.length();
    int c = (int) (b-1)/2;
    int d = (int) (b+3)/2;

    boolean a1 = check(a,0,b-1);
    boolean a2 = check(a,0,c-1);
    boolean a3 = check(a,d-1,b-1);

    if ((a1 == false) || (a2 == false) || (a3 == false)){
      System.out.println("No");
    }
    else{
      System.out.println("Yes");
    }


  }

  public static boolean check(String a, int b, int c){
    for (int i=b;i<c;i++){
      if (a.charAt(i) != a.charAt(c-i)){
        return false;
      }
    }
    return true;
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    String a = scan.next();
    int b = a.length();
    int c = (int) (b-1)/2;
    int d = (int) (b+3)/2;

    boolean a1 = check(a,0,b-1);
    boolean a2 = check(a,0,c-1);
    boolean a3 = check(a,d-1,b-1);

    if ((a1 == false) || (a2 == false) || (a3 == false)){
      System.out.println("No");
    }
    else{
      System.out.println("Yes");
    }


  }

  public static boolean check(String a, int b, int c){
    for (int i=b;i<c;i++){
      if (a.charAt(i) != a.charAt(c-i)){
        return false;
      }
    }
    return true;
  }
}
