S = gets.chomp N = S.size if N % 2 == 0 && S[0...N / 2] == S[N / 2..-1] puts 'YES' else puts 'NO' end