Calculate A กม B
Input and output are the same with problem 1001.
But A and B may be big integer.
The biggest integer is less than 10^500.