While explaining the solutions to the Math Contest problems at the Third Winter Training Camp at ESCOM, Iván came up with the following idea to challenge the participants:
You are given two big numbers $$$A$$$ and $$$B$$$ that does not contain the digit $$$0$$$. These numbers can be modified by performing two types of operations:
Find the maximum value of $$$A+B$$$ that you can get by performing the operations above any number of times and in any order. As this number might be huge, print it modulo $$$998244353$$$.
The first line contains two integers $$$A$$$ and $$$B$$$ ($$$1 \leq A,B \lt 10^{10,000}$$$) – the numbers given in the riddle. It is guaranteed that the numbers does not contain any digit $$$0$$$.
Print a single integer – the maximum value of $$$A+B$$$ modulo $$$998244353$$$.
58
13
3482468
9485
999999937998244353
3494159