#PCBSAU0000003. Thương và số dư (Quotient and Remainder)
Thương và số dư (Quotient and Remainder)
Quotient and Remainder
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given a non-negative integer and a positive integer , find the integer quotient and remainder when dividing by $b.
Input
One line containing integers .
Output
Print and separated by one space.
Subtask
- Subtask 1 — 100 points: ; .
Example
Input
17 5
Output
3 2
Explanation
For , the equality gives quotient and remainder , hence the output 3 2.