import java.util.*;
import java.math.*;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();

    String p = "";
    String q = "";
    String r = "";

    for (int i = 0; i < s.length()/2; i++) {
      p += s.charAt(i);
      q += s.charAt(s.length()-i-1);
    }

    for (int i = 0; i < q.length(); i++) {
      r += q.charAt(q.length()-i-1);
    }

    if (p.equals(r)) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

} import java.util.*; util.* java import java.math.*; math.* java public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();

    String p = "";
    String q = "";
    String r = "";

    for (int i = 0; i < s.length()/2; i++) {
      p += s.charAt(i);
      q += s.charAt(s.length()-i-1);
    }

    for (int i = 0; i < q.length(); i++) {
      r += q.charAt(q.length()-i-1);
    }

    if (p.equals(r)) {
      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();

    String p = "";
    String q = "";
    String r = "";

    for (int i = 0; i < s.length()/2; i++) {
      p += s.charAt(i);
      q += s.charAt(s.length()-i-1);
    }

    for (int i = 0; i < q.length(); i++) {
      r += q.charAt(q.length()-i-1);
    }

    if (p.equals(r)) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  } main {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();

    String p = "";
    String q = "";
    String r = "";

    for (int i = 0; i < s.length()/2; i++) {
      p += s.charAt(i);
      q += s.charAt(s.length()-i-1);
    }

    for (int i = 0; i < q.length(); i++) {
      r += q.charAt(q.length()-i-1);
    }

    if (p.equals(r)) {
      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 String p = ""; p "" String q = ""; q "" String r = ""; r "" for (int i = 0; i < s.length()/2; i++) {
      p += s.charAt(i);
      q += s.charAt(s.length()-i-1);
    } int i = 0; int i = 0; i 0 i < s.length()/2 i s.length()/2 s.length() s.length s 2 i++ i++ i {
      p += s.charAt(i);
      q += s.charAt(s.length()-i-1);
    } {
      p += s.charAt(i);
      q += s.charAt(s.length()-i-1);
    } p += s.charAt(i) p s.charAt(i) s.charAt s i q += s.charAt(s.length()-i-1) q s.charAt(s.length()-i-1) s.charAt s s.length()-i-1 s.length()-i-1 s.length() s.length s i 1 for (int i = 0; i < q.length(); i++) {
      r += q.charAt(q.length()-i-1);
    } int i = 0; int i = 0; i 0 i < q.length() i q.length() q.length q i++ i++ i {
      r += q.charAt(q.length()-i-1);
    } {
      r += q.charAt(q.length()-i-1);
    } r += q.charAt(q.length()-i-1) r q.charAt(q.length()-i-1) q.charAt q q.length()-i-1 q.length()-i-1 q.length() q.length q i 1 if (p.equals(r)) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    } p.equals(r) p.equals p r {
      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();

    String p = "";
    String q = "";
    String r = "";

    for (int i = 0; i < s.length()/2; i++) {
      p += s.charAt(i);
      q += s.charAt(s.length()-i-1);
    }

    for (int i = 0; i < q.length(); i++) {
      r += q.charAt(q.length()-i-1);
    }

    if (p.equals(r)) {
      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();

    String p = "";
    String q = "";
    String r = "";

    for (int i = 0; i < s.length()/2; i++) {
      p += s.charAt(i);
      q += s.charAt(s.length()-i-1);
    }

    for (int i = 0; i < q.length(); i++) {
      r += q.charAt(q.length()-i-1);
    }

    if (p.equals(r)) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

} Main
import java.util.*;
import java.math.*;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();

    String p = "";
    String q = "";
    String r = "";

    for (int i = 0; i < s.length()/2; i++) {
      p += s.charAt(i);
      q += s.charAt(s.length()-i-1);
    }

    for (int i = 0; i < q.length(); i++) {
      r += q.charAt(q.length()-i-1);
    }

    if (p.equals(r)) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }

  }

}
