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

~/algor $ cat problems/while-butun-va-qoldiq-qism

Quotient and remainder

Easy 1000 ms 64 MB 24%
Share

Two positive integers $N$ and $K$ are given. Find the integer part (quotient) and the remainder of dividing $N$ by $K$.

Separating the quotient and the remainder of a division

Input

One line with two integers: $N$ and $K$.

Output

One line with two integers separated by a space: the quotient and the remainder.

Note

$1 \le N, K \le 10^{6}$

Examples

Input #1
17 5
Output #1
3 2
Input #2
24 4
Output #2
6 0

Sign in to submit a solution

Signing up is free and takes a minute.