// #define _GLIBCXX_DEBUG #include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); ++i) int main() { // Input string S; cin >> S; // Judge int N = S.size(); string ans = "NO"; if (N % 2 == 0 && S.substr(0, N / 2) == S.substr(N / 2, N / 2)) ans = "YES"; // Output cout << ans << endl; }