#abc288f. [abc288_f]Integer Division

[abc288_f]Integer Division

Problem Statement

You are given a positive integer XX with NN digits in decimal representation. None of the digits of XX is 00.
For a subset SS of lbrace1,2,ldots,N1rbrace\\lbrace 1,2, \\ldots, N-1 \\rbrace , let f(S)f(S) be defined as follows.

See the decimal representation of XX as a string of length NN, and decompose it into S+1|S| + 1 strings by splitting it between the ii-th and (i+1)(i + 1)-th characters if and only if iinSi \\in S.
Then, see these S+1|S| + 1 strings as integers in decimal representation, and let f(S)f(S) be the product of these S+1|S| + 1 integers.

There are 2N12^{N-1} subsets of lbrace1,2,ldots,N1rbrace\\lbrace 1,2, \\ldots, N-1 \\rbrace , including the empty set, which can be SS. Find the sum of f(S)f(S) over all these SS, modulo 998244353998244353.

Constraints

  • 2leqNleq2times1052 \\leq N \\leq 2 \\times 10^5
  • XX has NN digits in decimal representation, none of which is 00.
  • All values in the input are integers.

Input

The input is given from Standard Input in the following format:

NN XX

Output

Print the answer.


Sample Input 1

3
234

Sample Output 1

418

For S=emptysetS = \\emptyset, we have f(S)=234f(S) = 234.
For S=lbrace1rbraceS = \\lbrace 1 \\rbrace, we have f(S)=2times34=68f(S) = 2 \\times 34 = 68.
For S=lbrace2rbraceS = \\lbrace 2 \\rbrace, we have f(S)=23times4=92f(S) = 23 \\times 4 = 92.
For S=lbrace1,2rbraceS = \\lbrace 1, 2 \\rbrace, we have f(S)=2times3times4=24f(S) = 2 \\times 3 \\times 4 = 24.
Thus, you should print 234+68+92+24=418234 + 68 + 92 + 24 = 418.


Sample Input 2

4
5915

Sample Output 2

17800

Sample Input 3

9
998244353

Sample Output 3

258280134