#include<iostream>
using namespace std;
int a[100000],n,m,mod=998244353;
int main(){
a[1]=1;a[2]=1;for(int i=3;i<100000;i++){a[i]=a[i-1]+a[i-2];a[i]%=mod;}
cin>>n>>m;
for(int i=1;i<=n-1;i++){
for(int j=2;j<=m;j++){a[j]+=a[j-1];a[j]%=mod;}
}
cout<<a[m]<<endl;
return 0;
}
I2luY2x1ZGU8aW9zdHJlYW0+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBhWzEwMDAwMF0sbixtLG1vZD05OTgyNDQzNTM7CmludCBtYWluKCl7CglhWzFdPTE7YVsyXT0xO2ZvcihpbnQgaT0zO2k8MTAwMDAwO2krKyl7YVtpXT1hW2ktMV0rYVtpLTJdO2FbaV0lPW1vZDt9CgljaW4+Pm4+Pm07Cglmb3IoaW50IGk9MTtpPD1uLTE7aSsrKXsKCQlmb3IoaW50IGo9MjtqPD1tO2orKyl7YVtqXSs9YVtqLTFdO2Fbal0lPW1vZDt9Cgl9Cgljb3V0PDxhW21dPDxlbmRsOwoJcmV0dXJuIDA7Cn0=