You're given two positive integers $$$A$$$ and $$$B$$$, and a string $$$P$$$, representing their product but with a missing digit indicated with an $$$*$$$. Find the missing digit.
It's guaranteed that the missing digit isn't $$$0$$$.
The first line contains three integers $$$a$$$, $$$b$$$ and $$$p$$$ ($$$1 \leq a, b \lt 10^6$$$, $$$1 \leq p \lt 2*10^6$$$) $$$-$$$ the number of digits in $$$A$$$, $$$B$$$ and $$$P$$$ respectively.
The second line contains positive number $$$A$$$.
The third line contains positive number $$$B$$$.
The fourth line contains string $$$P$$$ $$$-$$$ the product of $$$A$$$ and $$$B$$$ with a missing digit.
Print one integer representing the missing digit in $$$P$$$.
1 1 2 3 8 2*
4
2 2 3 10 10 *00
1
| Название |
|---|


