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
      if i==total/2+2 && ans==0 then
        puts "NO COLOR"
      else
        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
    end
  end
end