import java.util.*

fun main(args: Array<String>) {
    val sc = Scanner(System.`in`)
    val d = sc.nextInt()
    val c = (0 until 26).map { sc.next().toInt() }
    val s = (0 until d).map {
        (0 until 26).map { sc.next().toInt() }
    }
    println(problemintroduction_to_heuristics_contest(d, c, s))
}

fun problemintroduction_to_heuristics_contest(
    d: Int,
    c: List<Int>,
    s: List<List<Int>>
): String {
    val list = IntArray(26) { 0 }
    val ans = IntArray(d) { 1 }
    for (i in 0 until d) {
        ans[i] = i % 26 + 1
    }
    return ans.joinToString("\n")
}