#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include using namespace std; const int MOD=998244353; ll dp[110][110][220]; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); int h,w,k; cin>>h>>w>>k; vector S(h); rep(i,h) cin>>S[i]; dp[0][0][0]=1; rep(i,h) rep(j,w) rep(l,k){ if(dp[i][j][l]==0) continue; if(i