

fun main(args:Array<String>):Unit {
    var n = readLine()!!.toInt()
    while (n != 0){
        val nums = readLine()!!.split(' ').map(String::toInt)
        var max = 0
        var count = 0
        nums.forEach {
            if (it != max){
                if (count == 0) {
                    max = it
                    ++count
                }else --count
            }else ++count
        }
        if (nums.count{it == max} * 2 > n){
            println(max)
        }else{
            println("NO COLOR")
        }
        n = readLine()!!.toInt()
    }
}
