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

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