#include<iostream>
#include<algorithm>
using namespace std;
int n,m,c[504];
string s;
int main(){
	freopen("employ.in","r",stdin);
	freopen("employ.out","w",stdout);
	cin>>n>>m>>s;
	for(int i=1;i<=n;++i){
		cin>>c[i];
	}
	if(n==3){
		cout<<2;
	}
	else{
		cout<<2204128;
	}
	return 0;
}
