#include using namespace std; typedef int64_t ll; const ll mod=998244353;//≒10⁹ 素数 int mpow(int x,int y){//mod付きx^y //x^(a+b+c)=x^a × x^b × x^cを利用 bitset<32> btst(y); ll ans=1; for(int i=0;i<32;i++){ if(btst.test(i)){ ans=(ans*x)%mod; } x=(x*x)%mod; } return ans; } int main(){ ll h,w,m,ans=0; cin>>h>>w>>m; for(int i=0;i