#include<bits/stdc++.h>
using namespace std;

int main(){
	int n,m;
	cin>>n>>m;
	if(n==1){
		cout<<m;
	} 
	return 0;
}