#include <bits/stdc++.h>
#define int long long
#define endl '\n'
using namespace std;
constexpr int N = 100010, MOD = 1000000007;
int T;
int ans[10];
signed main()
{
    freopen("query.in", "r", stdin);
    freopen("query.out", "w", stdout);
    ios::sync_with_stdio(0);
    cin.tie(0);
    cin >> T;
    while(T--)
    {
        cout << 1 << endl;
    }
    return 0;
}