#include #include #include #include #include #include #include #include #include #include #include #include #define vll vector #define vvvl vector #define vvl vector> #define VV(a, b, c, d) vector>(a, vector(b, c)) #define VVV(a, b, c, d) vector(a, vvl(b, vll (c, d))); #define re(c, b) for(ll c=0;c> s; if(s.size()%2==1) return false; string l = s.substr(0, s.size()/2); string r = s.substr(s.size()/2, s.size()/2); //std::cout << l << " " << r << '\n'; return l==r; } int main(int argc, char const *argv[]) { if(solve()) std::cout << "YES" << '\n'; else std::cout << "NO" << '\n'; }