Niuniu wants to fill an n x m sheet with 0s and 1s.
Niuniu wants the xor sum for each row and each column is 0.
In other words there is a even number of 1 in each row and each column.
Two sheets are considered the same, if they are identical after cyclic shift (vertical or horizontal).
Formally, for two sheets A and B, if we can find x and y such that
we will consider A and B are the same sheet.
Niuniu wants to know the number of ways to fill the sheet.
As the result might be very large, he wants to know the result modulo 998244353.