#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); string S; cin >> S; if ((int)S.size() % 2 != 0) { cout << "NO" << '\n'; return 0; } for (int i = 0; i < (int)S.size() / 2; i++) { if (S[i] != S[S.size() / 2 + i]) { cout << "NO" << '\n'; return 0; } } cout << "YES" << '\n'; return 0; }