#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int INF = 0x3f3f3f3f; //❄️
int main() {
    ios::sync_with_stdio(0); cin.tie(0); 
    vector<int> s = {1,3,3,2,2,1,3,3,3,1,2,3,1,1,1};
    for (int i = 0; i < 15; i++) {
        cout << s[i] << endl;
    }
    return 0;
}