cho.sh
Notes
Loading...

Enormous Wealth 2

Time limit

2s

Memory limit

128 MB

Problem

An assistant has an extremely large amount of money. When this became known across the universe, many intelligent life forms came asking for the money to be shared equally.

Following the principle that all intelligent life forms are equal, the money n will be divided evenly among m life forms.

Find how much money each life form can receive, and how much money remains after giving everyone the same amount.

Input

The first line contains the amount of money n and the number of life forms m, separated by a space.

1 ≤ m ≤ n ≤ 10^1000, and both n and m are decimal integers.

Output

Print the amount of money one life form can receive on the first line.

Print the remaining amount of money after equal distribution on the second line.