import kotlin.random.Random
fun main(args: Array<String>) {
    var D = readLine()!!.toInt()
    var c = readLine()!!.split(" ").map{it.toInt()}

    val s = mutableListOf<List<Int>>()
    for(i in 0 until D) {
        s.add(readLine()!!.split(" ").map{it.toInt()})
    }

    for(i in 0 until D) {
        val randomInt = Random.nextInt(26)
        println(randomInt + 1)
    }
}