#R1022. [KBC002F] Calculate 1

[KBC002F] Calculate 1

Problem Description

A new bitwise operation \sharp is defined as follows: 00=10\sharp0=1, 01=10\sharp1=1, 11=11\sharp1=1, 10=01\sharp0=0.

Output the number of 0/10/1 strings of length NN (modulo 998 244 353998\ 244\ 353) that satisfy the following conditions:

  • $((((A_1\sharp A_2)\sharp A_3)\sharp\cdots)\sharp A_{N-1})\sharp A_N=1$;
  • $A_1\sharp(A_2\sharp(A_3\sharp(\cdots\sharp(A_{N-1}\sharp A_N))))=1$.

Constraints

  • 1N101000011\leq N\leq 10^{100001}.

Input

An integer NN.

Output

The result modulo 998 244 353998\ 244\ 353.

Sample Input 1

20

Sample Output 1

699051