You are given $$$n$$$ identical biased coins. In each toss, every coin shows sol with probability $$$\tfrac{p}{q}$$$ and águila with probability $$$1 - \tfrac{p}{q}$$$. Initially, none of the coins has shown sol.
You perform the following process:
Let $$$T$$$ denote the number of rounds until this happens. Your task is to compute the expected value of $$$T$$$.
The input consists of three integers $$$n$$$, $$$p$$$, and $$$q$$$ ($$$1 \leq n \leq 10^7$$$, $$$1 \leq p \leq q \lt 998244353$$$), where $$$\tfrac{p}{q}$$$ is the probability that a coin shows heads in a single toss.
Print a single integer: the expected number of rounds until all $$$n$$$ coins have shown sol, modulo $$$998244353$$$.
1 1 2
2
2 1 2
665496238