Painting is always a boring job. There are nnn blocks on an infinite two-dimensional plane. Each block is a rectangle parallel to the xxx-axis and yyy-axis with a non-zero area. The coordinates of b
Painting is always a boring job. There are nnn blocks on an infinite two-dimensional plane. Each block is a rectangle parallel to the xxx-axis and yyy-axis with a non-zero area. The coordinates of bottom-left corner and top-right corner of the iii-th block are (x1,i,y1,i)(x_{1,i},y_{1,i})(x1,i,y1,i) and (x2,i,y2,i)(x_{2,i},y_{2,i})(x2,i,y2,i). There is another block with coordinates of bottom-left corner and top-right corner are (0,0)(0,0)(0,0) and (W,H)(W,H)(W,H). Nike wants to paint this block black. He will repeatedly choose one of the previous nnn blocks uniformly at random and independently and fill it black, until the rectangle ((0,0),(W,H))((0,0),(W,H))((0,0),(W,H)) is completely filled black. Find the expected value of the number of times the procedure is done, modulo 998244353998244353998244353. If the procedure is impossible to stop, output −1-1−1.