#define MD 998244353 Mint f[101][201]; { ll@h,@w,@k; string@s[h]; f[0][k-1]=1; rep(y,h){ rep(x,w){ ll c=s[y][x]; if(c=='o'){ rep(u,k){ f[x][u]=f[x][u+1]; } } if(c=='#'){ rep(u,k){ f[x][u]=0; } }else{ rep(u,k){ f[x+1][u]+=f[x][u]; } } } } wt(sum(((f[w-1]))(k))); }