← Problem book: Python Lesson 8 of 96 · 10 XP

Sharing a pizza

Theory and problem statement

Machine translation, not yet reviewed by a native speaker.

A pizza was cut into k slices and is shared equally among n friends; whatever can't be shared equally is left over. You are given n and k on one line. Print, separated by a space, how many slices each friend gets and how many are left.

Example

Input:

3 8

Output:

2 2

Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.