Math String

아직 제출이 없습니다시간 제한2초메모리 제한1024 MB

문제

Consider a string SS of length NN composed of 11 characters: '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '*'.

We will call string SS a math string if:

  • The first and last characters of SS are neither '+' nor '*'.
  • When two consecutive characters are taken from SS, at least one of them is neither '+' nor '*'.

Each math string can be treated as an arithmetic expression with integers in decimal notation using ordinary arithmetic operations, where multiplication takes precedence over addition. For each such expression, its value can be calculated: for example, the value of math string "35+2*6" is 4747. Please find the sum of the values of all math strings of the given length NN, modulo 998,244,353998\\,244\\,353.

입력

The input contains one integer NN (1N10181 \le N \le 10^{18}).

출력

Print one integer: the answer to the problem.

힌트

In the Example 1, there are only 9 distinct one-digit math strings: the digits from '1' to '9'. The sum of those digits, treated as arithmetic expressions, is equal to 4545.