Long division on a short number
Very easy
Execution time limit is 2 seconds
Runtime memory usage limit is 122.174 megabytes
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 ≤ 10^60000
, 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.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 38%