#include #include int main() { char s[21]; scanf("%s", s); int len=strlen(s)/2; if (strncmp(s, &s[len],len)==0) printf("YES\n"); else printf("NO\n"); return 0; }