#abc242c. [abc242_c]1111gal password

[abc242_c]1111gal password

Problem Statement

Given an integer NN, find the number of integers XX that satisfy all of the following conditions, modulo 998244353998244353.

  • XX is an NN-digit positive integer.
  • Let X1,X2,dots,XNX_1,X_2,\\dots,X_N be the digits of XX from top to bottom. They satisfy all of the following:
    • 1leXile91 \\le X_i \\le 9 for all integers 1leileN1 \\le i \\le N;
    • XiXi+1le1|X_i-X_{i+1}| \\le 1 for all integers 1leileN11 \\le i \\le N-1.

Constraints

  • NN is an integer.
  • 2leNle1062 \\le N \\le 10^6

Input

Input is given from Standard Input in the following format:

NN

Output

Print the answer as an integer.


Sample Input 1

4

Sample Output 1

203

Some of the 44-digit integers satisfying the conditions are 1111,1234,7878,65451111,1234,7878,6545.


Sample Input 2

2

Sample Output 2

25

Sample Input 3

1000000

Sample Output 3

248860093

Be sure to find the count modulo 998244353998244353.