Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/bolinma-va-qoldiq

Quotient and remainder

Easy 1000 ms 64 MB 9%
Share

Two positive integers $a$ and $b$ are given. Find the quotient and the remainder of the integer division of $a$ by $b$.

Diagram of computing the quotient and the remainder

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

Sign in to submit a solution

Signing up is free and takes a minute.