Starlight Glimmer has a $$$2$$$-row, $$$m$$$-column grid, with row $$$i$$$ and column $$$j$$$ labeled as $$$(i,j)$$$.
She performs a depth-first search starting from the lattice labeled as $$$(1,1)$$$ (i.e., the first row and first column), and each lattice can reach a lattice that is adjacent to at least one of its edges. Since the search process does not repeatedly visit lattices, a tree can be used to describe the search process.
Now she wants to know how many possible results of the labelled trees there are in total, and to avoid the answer being too large, you need to modulo $$$998244353$$$ to print it.
Formally, we use a stack $$$S$$$ to describe the depth-first search process and a edge set $$$E$$$ to indicate a labelled tree.
In depth-first search process, fristly push lattice $$$(1,1)$$$ in stack $$$S$$$ then goto the process as follows:
For lattice $$$(x,y)$$$, if a lattice $$$(z,w)$$$ satisfies $$$|z-x|+|w-y|=1,z\in \{1,2\},w\in \{1,2,3,\dots,m\}$$$ and havn't been visited, it is a unvisit legal adjacent lattice which will be in set $$$N$$$.
The process may produce many different kinds of edge set $$$E$$$, the number of it is the labelled trees describe above.
The first line contains an integer $$$m$$$ ($$$1\le m\le 10^5$$$) indicating the column of the grid.
Print a single integer, represents the number of trees modulo $$$998244353$$$.
3
4
Next page is a specific illustration of the $$$4$$$ labeled trees when $$$m$$$ equals $$$3$$$.
| Name |
|---|


