Given $n$, $x$ and $y$, let $f_{n, x, y}(a, b)$ denote the value of $$ \sum_{i = a}^{n - b} \binom{i}{a} x^{i - a} \binom{n - i}{b} y^{n - i - b}\text{.}$$
Bobo also has $q$ pairs $(a_1, b_1), \dots, (a_q, b_q)$. Find the value of $f_{n, x, y}(a_1, b_1), \dots, f_{n, x, y}(a_q, b_q)$ modulo $998244353$.
Note: $$\binom{n}{k} = \frac{n!}{(n - k)! k!}\text{.}$$
The input consists of several test cases terminated by end-of-file. For each test case,
The first line contains four integers $n$, $x$, $y$ and $q$.
In the following $q$ lines, the $i$-th line contains two integers $a_i$ and $b_i$.
For each pair, output an integer which denotes the value modulo $998244353$.