eolymp
bolt
Try our new interface for solving problems
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 seconds
Memory limit 122.17 MiB
Input example #1
12345678901234567890
1000
Output example #1
12345678901234567
890