while true do
  total=gets.chomp.to_i
  if total==0 then
    break
  else
    colors=gets.chomp.split
    ans=0
    for i in 0..total/2+2 do
      count=1
      for j in i+1..total do
        if colors[i]==colors[j] then
          count=count+1
        end
        if count>total/2 then
          puts colors[i]
          ans=ans+1
          break
        end
      end
    end
    if ans==0 then
      puts "NO COLOR"
    end
  end
end