S = gets.chomp s = S.size m = s/2 puts S.slice(0, m) == S.slice(m,s) ? :YES : :NO