// yukicoder: No.739 大事なことなので2度言います // 2019.5.3 bal4u #include #define gc() getchar() int ins(char *s) // 文字列の入力 スペース以下の文字で入力終了 { char *p = s; do *s = gc(); while (*s++ > ' '); *--s = 0; return s - p; } char S[25], *s = S, *t; int main() { int ans = 0, w = ins(S); if ((w & 1) == 0) { t = S + (w>>1); while (*t && *s == *t) s++, t++; ans = (*t == 0); } puts(ans? "YES": "NO"); return 0; }