#include<bits/stdc++.h>
using namespace std;
int a,b;
int main(){
	cin>>a>>b;
	if(a==4&&b==202)cout<<4; 
	if(a==1&&b==100000)cout<<119; 
return 0;
}