import kotlin.random.Random

//

fun main() {
    intro_heuristicsa()
}

fun intro_heuristicsa() {
    val d = readLine()!!.toInt()
    val c = readLine()!!.split(" ").map { it.toInt() }
    val s = MutableList(d) { listOf<Int>()}
    repeat(d) {
        s[it] = readLine()!!.split(" ").map { it.toInt() }
    }
    repeat(d) {
        println(Random.nextInt(26) + 1)
    }
}
