#define MD 998244353 ll@n,l=0;string@s;Mint a[n+1]{1};rep(j,n){rrep(i,l,n)a[i+1]+=a[i];l+=s[j]&1;a[j+2-l]=0;}wt(a[l]);