#include using namespace std; int main(){ string S; cin>>S; int len=S.length(); if(S.substr(0,len/2)==S.substr(len/2,len/2)){ cout<<"YES"<