import java.io.*; import java.util.Scanner; public class Main_yukicoder739 { private static Scanner sc; private static Printer pr; private static void solve() { char[] s = sc.next().toCharArray(); int n = s.length; if (n % 2 != 0) { pr.println("NO"); } else { for (int i = 0; i < n / 2; i++) { if (s[i] != s[n / 2 + i]) { pr.println("NO"); return; } } pr.println("YES"); } } // --------------------------------------------------- public static void main(String[] args) { sc = new Scanner(System.in); pr = new Printer(System.out); solve(); pr.close(); sc.close(); } static class Printer extends PrintWriter { Printer(OutputStream out) { super(out); } } }