#include <iostream>
#include <cmath>
using namespace std;
typedef long long ll;
#define rep(i,n) for((i)=0;(i)<(n);(i)++)
#define max(a,b) ((a)>(b) ? (a) : (b))
#define AL 26
int main(){
  int d,i,j,tmp=0;
  ll c[26],s[365][26];
  
  cin >> d;
  rep(i,AL) cin >> c[i];
  rep(i,d){
    rep(j,AL) cin >> s[i][j];
  }
  rep(i,d){
    tmp=0;
    rep(j,AL){
      if(s[i][tmp]*pow(c[tmp],2)<s[i][j]*pow(c[j],2)){
        tmp = j;
      }
    }
    cout << tmp+1 << endl;
  }
  return 0;
}