#include<bits/stdc++.h>
#define ll long long
using namespace std;
const int N=1e5+5,inf=0x3f3f3f3f;
ll T;
int main(){
	freopen("replace.in","r",stdin);
	freopen("replace.out","w",stdout);
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	cin>>T;
	while(T--) cout<<0<<endl;
	return 0;
}

