#include #include #include #include using namespace std; int main() { string s; cin >> s; const int n = s.size(); cout << (s.substr(0, n / 2) == s.substr(n / 2) ? "YES" : "NO") << endl; }