LearnPy Hub
← Operators problems
Easy

Share the Sweets

n sweets are shared equally among k children. Print how many each child gets, then how many are left over.

Input

Two integers n and k (k > 0).

Output

Two lines.

Sample 1

Input
17
5
Output
3
2

Sample 2

Input
20
4
Output
5
0
solution.py
Output appears here
Share the Sweets · Python practice problem · LearnPy Hub