#include<bits/stdc++.h>
using namespace std;
int c,T;
inline long long read()
{
	char c=getchar();
	long long p=0;
	long long f=1LL;
	while(c<='0' || c>='9')
	{
		if(c=='-')
			f=-1LL;
		c=getchar();
	}
	while(c>='0' && c<='9')
	{
		p=p*10+int(c-'0');
		c=getchar();
	}
	return p*f;
}

int main()
{
	freopen("traverse.in","r",stdin);
	freopen("traverse.out","w",stdout);
	c=read(),T=read();
	while(T--)
	{
		int n,k;
		n=read(),k=read();
		cout<<n<<endl;
	}
	return 0;
}
