S=gets.chomp if S.size.odd? then puts "NO" else h = S.size/2 if S[0, h] == S[h, h] then puts "YES" else puts "NO" end end