while n = gets.to_i
    break if n == 0
    a = gets.split.map(&:to_i).each_with_object(Hash.new(0)) { |k, h| h[k] += 1 }
    puts a.each_value.all?{|v| v <= n - v} ? "NO COLOR" : a.key(a.each_value.max)
end