function main() {
  const D = Number(input[0]);
  const c = input[1].split(' ').map(Number);
  
  const scores_of_day = input.slice(2,D+2);
  const scores = scores_of_day.map((text) => {
    return text.split(' ').map(Number);
  });
  let s = 0;
  let c_stock = Array.from(c);
  let real_s, add, t;
  
  for (i=0;i<D;i++) {
    real_s = [];
    for (j=0;j<26;j++) {
      real_s.push(scores[i][j]-c_stock[j]);
    }
    t = real_s.indexOf(Math.max.apply(null, real_s));
    s += scores[i][t];
    add = Array.from(c);
    add[t] = 0;
    
    for (j=0;j<26;j++) {
      c_stock[j] += add[j];
    }
    s -= c_stock.reduce(function(a, x){return a + x;});
    console.log(t+1);  
  }
}

var input = '';

process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(chunk) {
  input += chunk;
});
process.stdin.on('end', function() {
  input = input.split('\n');
  main();
});