Problem Statement
Given an integer NN, solve the following problem.
Let f(x)=f(x)= (The number of positive integers at most xx with the same number of digits as xx).
Find f(1)+f(2)+\dots+f(N)f(1)+f(2)+⋯+f(N) modulo 998244353998244353.
Constraints
-
NN is an integer.
-
1 \le N < 10^{18}1≤N<1018
Input
Input is given from Standard Input in the following format:
NN
Output
Print the answer as an integer.