import java.io.*;

public class Main {

  static boolean checkKaibun(String str){
    StringBuilder t = new StringBuilder(str);
    return (str.equals(t.reverse().toString()));
  }

  public static void main(String[] args) throws IOException {

    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String s = br.readLine();

    br.close();

    int n = s.length();
    boolean ok = checkKaibun(s);
    ok &= checkKaibun(s.substring(0, (n-1)/2));
    ok &= checkKaibun(s.substring((n+1)/2));

    System.out.println(ok ? "Yes" : "No");
    
  }
} import java.io.*; io.* java public class Main {

  static boolean checkKaibun(String str){
    StringBuilder t = new StringBuilder(str);
    return (str.equals(t.reverse().toString()));
  }

  public static void main(String[] args) throws IOException {

    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String s = br.readLine();

    br.close();

    int n = s.length();
    boolean ok = checkKaibun(s);
    ok &= checkKaibun(s.substring(0, (n-1)/2));
    ok &= checkKaibun(s.substring((n+1)/2));

    System.out.println(ok ? "Yes" : "No");
    
  }
} Main static boolean checkKaibun(String str){
    StringBuilder t = new StringBuilder(str);
    return (str.equals(t.reverse().toString()));
  } checkKaibun {
    StringBuilder t = new StringBuilder(str);
    return (str.equals(t.reverse().toString()));
  } StringBuilder t = new StringBuilder(str); t new StringBuilder(str) return (str.equals(t.reverse().toString())); (str.equals(t.reverse().toString())) str.equals str t.reverse().toString() t.reverse().toString t.reverse() t.reverse t String str str public static void main(String[] args) throws IOException {

    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String s = br.readLine();

    br.close();

    int n = s.length();
    boolean ok = checkKaibun(s);
    ok &= checkKaibun(s.substring(0, (n-1)/2));
    ok &= checkKaibun(s.substring((n+1)/2));

    System.out.println(ok ? "Yes" : "No");
    
  } main {

    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String s = br.readLine();

    br.close();

    int n = s.length();
    boolean ok = checkKaibun(s);
    ok &= checkKaibun(s.substring(0, (n-1)/2));
    ok &= checkKaibun(s.substring((n+1)/2));

    System.out.println(ok ? "Yes" : "No");
    
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String s = br.readLine(); s br.readLine() br.readLine br br.close() br.close br int n = s.length(); n s.length() s.length s boolean ok = checkKaibun(s); ok checkKaibun(s) checkKaibun s ok &= checkKaibun(s.substring(0, (n-1)/2)) ok checkKaibun(s.substring(0, (n-1)/2)) checkKaibun s.substring(0, (n-1)/2) s.substring s 0 (n-1)/2 (n-1) n 1 2 ok &= checkKaibun(s.substring((n+1)/2)) ok checkKaibun(s.substring((n+1)/2)) checkKaibun s.substring((n+1)/2) s.substring s (n+1)/2 (n+1) n 1 2 System.out.println(ok ? "Yes" : "No") System.out.println System.out System System.out ok ? "Yes" : "No" ok "Yes" "No" String[] args args public class Main {

  static boolean checkKaibun(String str){
    StringBuilder t = new StringBuilder(str);
    return (str.equals(t.reverse().toString()));
  }

  public static void main(String[] args) throws IOException {

    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String s = br.readLine();

    br.close();

    int n = s.length();
    boolean ok = checkKaibun(s);
    ok &= checkKaibun(s.substring(0, (n-1)/2));
    ok &= checkKaibun(s.substring((n+1)/2));

    System.out.println(ok ? "Yes" : "No");
    
  }
} public class Main {

  static boolean checkKaibun(String str){
    StringBuilder t = new StringBuilder(str);
    return (str.equals(t.reverse().toString()));
  }

  public static void main(String[] args) throws IOException {

    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String s = br.readLine();

    br.close();

    int n = s.length();
    boolean ok = checkKaibun(s);
    ok &= checkKaibun(s.substring(0, (n-1)/2));
    ok &= checkKaibun(s.substring((n+1)/2));

    System.out.println(ok ? "Yes" : "No");
    
  }
} Main
import java.io.*;

public class Main {

  static boolean checkKaibun(String str){
    StringBuilder t = new StringBuilder(str);
    return (str.equals(t.reverse().toString()));
  }

  public static void main(String[] args) throws IOException {

    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String s = br.readLine();

    br.close();

    int n = s.length();
    boolean ok = checkKaibun(s);
    ok &= checkKaibun(s.substring(0, (n-1)/2));
    ok &= checkKaibun(s.substring((n+1)/2));

    System.out.println(ok ? "Yes" : "No");
    
  }
}