s = gets.chomp t = s.size if t % 2 != 0 puts "NO" else if s[0...t / 2] == s[t / 2..-1] puts "YES" else puts "NO" end end