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