#include using namespace std; #define int long long signed main(){ int n,m; cin>>n>>m; if(n==2) cout<<1<