#include #define rep(i,a,b) for(int i=int(a);i> S; int l = S.length(); if(l % 2 == 0 && S.substr(l/2) == S.substr(0,l/2)){ cout << "YES" << endl; }else{ cout << "NO" << endl; } }