e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
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 (0m1060000, 1n1 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.

Time limit 2 second
Memory limit 122.17 MiB
Input example #1
12345678901234567890
1000
Output example #1
12345678901234567
890