#include<iostream>
using namespace std;
int n,q;
string a[200010][3];
int main(){
	freopen("replace.in","r",stdin);
	freopen("replace.out","w",stdout);
	cin>>n>>q;
	for(int i=1;i<=n;i++) cin>>a[i][1]>>a[i][2];
	cout<<1;
	return 0;
}
