#include using namespace std; #define INF 1000000000000000000 #define MOD 998244353 using ll=long long; using Graph=vector>; int main(){ int N,M; cin>>N>>M; vector dp(M+1,0); if(N==1){ cout<<1<