#arc146c. [arc146_c]Even XOR

[arc146_c]Even XOR

Problem Statement

How many sets SS consisting of non-negative integers between 00 and 2N12^N-1 (inclusive) satisfy the following condition? Print the count modulo 998244353998244353.

  • Every non-empty subset TT of SS satisfies at least one of the following:
    • The number of elements in TT is odd.
    • The mathrmXOR\\mathrm{XOR} of the elements in TT is not zero.

What is mathrmXOR\\mathrm{XOR}?

The bitwise mathrmXOR\\mathrm{XOR} of non-negative integers AA and BB, AoplusBA \\oplus B, is defined as follows:

  • When AoplusBA \\oplus B is written in base two, the digit in the 2k2^k's place (kgeq0k \\geq 0) is 11 if exactly one of the digits in that place of AA and BB is 11, and 00 otherwise.

For example, we have 3oplus5=63 \\oplus 5 = 6 (in base two: 011oplus101=110011 \\oplus 101 = 110).
Generally, the bitwise mathrmXOR\\mathrm{XOR} of kk non-negative integers p1,p2,p3,dots,pkp_1, p_2, p_3, \\dots, p_k is defined as $(\\dots ((p_1 \\oplus p_2) \\oplus p_3) \\oplus \\dots \\oplus p_k)$. We can prove that this value does not depend on the order of p1,p2,p3,dots,pkp_1, p_2, p_3, \\dots, p_k.

Constraints

  • 1leNle2times1051 \\le N \\le 2 \\times 10^5
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

NN

Output

Print the answer.


Sample Input 1

2

Sample Output 1

15

Sets such as lbrace0,2,3rbrace\\lbrace 0,2,3 \\rbrace, lbrace1rbrace\\lbrace 1 \\rbrace, and lbracerbrace\\lbrace \\rbrace satisfy the condition.

On the other hand, lbrace0,1,2,3rbrace\\lbrace 0,1,2,3 \\rbrace does not.

This is because the subset lbrace0,1,2,3rbrace\\lbrace 0,1,2,3 \\rbrace of lbrace0,1,2,3rbrace\\lbrace 0,1,2,3 \\rbrace has an even number of elements, whose bitwise mathrmXOR\\mathrm{XOR} is 00.


Sample Input 2

146

Sample Output 2

743874490