#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
  int D;
  cin >> D;
  vector<int> c(26);
  vector<int> s(26);
  
  rep(i, D) {
  	cout << (i%26)+1 << endl;
  }
}
