#include #include int main() { char str[32], str2[32]; scanf("%s", str); if(strlen(str)%2 == 0){ strcpy(str2, str+strlen(str)/2); str[strlen(str)/2] = 0; if(!strcmp(str2, str)){ printf("YES\n"); return 0; } } printf("NO\n"); return 0; }