import scala.math

object Main extends App {
  def divisors(n: Int): List[Int] =
    for (i <- (1 to n).toList if n % i == 0) yield i
  val sc = new java.util.Scanner(System.in)
  var d = sc.nextInt()
  var s = List.fill(26)(sc.nextInt())
  var c = Array.ofDim[Int](d,26)
  for (i <- 0 until d){
    c(i) = Array.fill(26)(sc.nextInt())
  }
  for(i <- 0 until d){
    println( c(i).indexOf(c(i).max) + 1)
  }
}
