ALGOR Contest: Round #3 (Weekly Sprint)
Problem A · 100 points ·
ICPC rules
~/algor $ cat contests/round-3/A
A. Quotient and remainder
1000 ms
64 MB
Two positive integers $a$ and $b$ are given. Find the quotient and the remainder of the integer division of $a$ by $b$.
Input
One line with two positive integers: $a$ and $b$.
Output
One line with two integers: the quotient $q$ and the remainder $r$.
Note
$1 \le a, b \le 10^{9}$
Examples
Input #1
17 5
Output #1
3 2
Input #2
20 4
Output #2
5 0