<tt>Roundgod</tt> and <tt>kimoyami</tt> are playing the <strong>graph game</strong> on a directed graph.
Given a directed graph $G=(V,E)$ and a source vertex $s\in V$, the graph game $(G,s)$ is defined as follows:
<ol>
<li> Initially, there is a token on the source vertex $s$. <tt>Roundgod</tt> and <tt>kimoyami</tt> take turns moving the token through a directed edge, with <tt>Roundgod</tt> going first. The game ends when either player cannot make a valid move, and the player who cannot make a move loses. If the game lasts $10^{100}$ turns, then the game is considered a draw. </li>
</ol>
<tt>Roundgod</tt> is not an expert at this game and is often beaten by <tt>kimoyami</tt>. He remembered the famous quote, "If you can't beat them, join them!'', and then came up with the notion of <strong>join of graph games</strong>.
Given a nonempty collection of $k(k>0)$ graph games $(G_1,s_1),\dots,(G_k,s_k)$. The <strong>join</strong> of the $k$ games is also a game with the following definition:
<ol>
<li> <tt>Roundgod</tt> and <tt>kimoyami</tt> take turns moving the tokens in all $k$ graph games <strong>simultaneously</strong>, with <tt>Roundgod</tt> going first. The game ends when either player cannot make a valid move <strong>in any of the $k$ games</strong>, and the player who cannot make a move loses. If the game lasts $10^{100}$ turns, then the game is considered a draw. </li>
</ol>
Now, given a collection of $k$ graph games, $(G_1,s_1),\dots,(G_k,s_k)$, <tt>Roundgod</tt> then needs to choose a <strong>nonempty subset</strong> from the $k$ games and play with <tt>kimoyami</tt> on the <strong>join</strong> of the chosen games. <tt>Roundgod</tt> wonders, how many ways are there to choose such a nonempty subset so that he may win the game under the optimal strategy of both players? As the answer may be too large, you need to output the answer modulo $998244353$.