inpuit = gets.chomp if input.length % 2 > 0 then first = input[0..(input.length/2-1)] second = input[(input.length/2)..input.length] if first == second then puts "YES" else puts "NO" end else puts "NO" end