#PCBSAU0000023. Chia pizza (Pizza Sharing)
Chia pizza (Pizza Sharing)
Pizza Sharing
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
There are people, pizzas, and slices per pizza. Distribute whole slices equally, without further cutting. Find slices per person and leftovers.
Input
One line with : people, pizzas, slices per pizza.
Output
Print slices per person and leftover slices on one line.
Subtask
- Subtask 1 — 100 points: ; ; .
Example
Input
5 2 8
Output
3 1
Explanation
There are slices; slices per person, with leftover.