#include #include #include #include #include #include using namespace std; using namespace atcoder; using ll = long long; using mint = modint998244353; using vi = vector; using vvi = vector; using vvvi = vector; using vll = vector; using vvll = vector; using vvvll = vector; using vmi = vector; using vvmi = vector; using vvvmi = vector; #define all(a) (a).begin(), (a).end() #define rep2(i, m, n) for (int i = (m); i < (n); ++i) #define rep(i, n) rep2(i, 0, n) #define drep2(i, m, n) for (int i = (m)-1; i >= (n); --i) #define drep(i, n) drep2(i, n, 0) struct S{ mint value; mint size; }; using F = mint; S op(S a, S b){ return {a.value+b.value, a.size+b.size}; } S e(){ return {mint(0), 0}; } S mapping(F f, S x){ return {x.value + f*x.size, x.size}; } F composition(F f, F g){ return f+g; } F id(){ return mint(0); } int main(){ int h, w, a, b; cin >> h >> w >> a >> b; vector vh(h, {mint(0), mint(1)}), vw(w, {mint(0), mint(1)}); lazy_segtree segh(vh); lazy_segtree segw1(vw), segw2(w); for(int i = 0; i+a <= h; i++){ mint c = mint(1)/mint(h-a+1); segh.apply(i, i+a, c); } rep(j, w-b+1){ mint c = mint(1)/mint(w-b+1); segw1.apply(j, j+b, c); } rep(i, w)segw2.set(i, {segw1.get(i).value*segw1.get(i).value, 1}); mint ans = mint(0); rep(i, h){ mint ph = segh.get(i).value; ans += mint(2)*segw1.all_prod().value*ph - segw2.all_prod().value*ph*ph; } cout << ans.val() << endl; return 0; }