Problems
Long division on a short number
Long division on a short number
Given a nonnegative integer m and positive integer n. Find m div n and m mod n.
Input
The first line contains the number m, the second n (0 ≤ m ≤ 1060000
, 1 ≤ n ≤ 1 000 000).
Output
Print in the first line the value of the expression m div n, in the second line - the value of expression m mod n.
Input example #1
12345678901234567890 1000
Output example #1
12345678901234567 890