#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using vll = vector<ll> ;
#define all(v) v.begin(),v.end()

int main(){
    ll D;cin>>D;
    vector<int> c(26);rep(i,26)cin>>c[i];
    vector<vector<int>> s(D,vector<int>(26));
    rep(i,D)rep(j,26) cin>>s[i][j];
    rep(i,D) cout<<i%26+1<<endl;
}

