import sys V = sys.version_info _39 = False _310 = False _311 = False if V.major == 3: _39 = V.minor >= 9 _310 = V.minor >= 10 _311 = V.minor >= 11 if _39: li = list tup = tuple dic = dict st = set ty = type else: from typing import ( List, Tuple, Type, Dict, Set, ) li = List tup = Tuple dic = Dict st = Set ty = Type from sys import stdin read = stdin.buffer.read rl = stdin.buffer.readline rb = lambda: rl().split() rls = stdin.buffer.readlines from typing import Iterable def prints( a: Iterable[object], sep: str = "\n", ) -> None: print(sep.join(map(str, a))) import numpy as np def cumprod( m: int, a: np.ndarray, ) -> np.ndarray: assert a.ndim == 1 n = a.size k = int(n**0.5 + 1) a = np.resize(a, (k, k)) for i in range(k - 1): a[:, i + 1] *= a[:, i] a[:, i + 1] %= m for i in range(k - 1): a[i + 1] *= a[i, -1] a[i + 1] %= m return a.ravel()[:n] def fact(m: int, n: int) -> np.ndarray: f = np.arange(n) f[0] = 1 return cumprod(m, f) def tables( m: int, n: int, ) -> tup[(np.ndarray,) * 3]: assert n <= m f = fact(m, n) fi = np.arange(n, 0, -1) fi[0] = pow(int(f[-1]), -1, m) fi = cumprod(m, fi)[::-1] inv = fi.copy() inv[0] = 0 inv[1:] *= f[:-1] return f, fi, inv % m class Comb: m: int f: np.ndarray fi: np.ndarray inv: np.ndarray def __init__( self, m: int, n: int, ) -> None: self.m = m self.f, self.fi, self.inv = tables( m, n ) # arary-like type # not only int def p(self, n: int, k: int) -> int: ok = (0 <= k) & (k <= n) v = self.f[n] * self.fi[n - k] return v % self.m * ok def c(self, n: int, k: int) -> int: v = self.p(n, k) * self.fi[k] return v % self.m def h(self, n: int, k: int) -> int: return self.c(n - 1 + k, k) # nCk is undefined -> fill with 0 def ip(self, n: int, k: int) -> int: ok = (0 <= k) & (k <= n) # assert np.all(ok) v = self.fi[n] * self.f[n - k] return v % self.m * ok def ic(self, n: int, k: int) -> int: v = self.ip(n, k) * self.f[k] return v % self.m def solve() -> None: mod = 998_244_353 x, y, z, w = map(int, rb()) f = Comb(mod, 1 << 20) z = max(z, 1) w = max(w, 1) v = f.f[x + y - z - w] v *= f.c(x, z) v %= mod v *= f.c(y, w) v %= mod print(v) def main() -> None: t = 1 # t = int(rl()) for _ in range(t): solve() main()