Module: (C++) Integer division and remainder


Problem

16 /16


Book pages

Problem

A book contains k lines on one page. Thus, on the first page the lines from the first to the k-th are printed, on the second - from the (k + 1) to (2k), etc. Write a program that identifies the line number in the text the page number on which this line will be printed, and the serial number of this line on the page.

Input format 
Given two integer numbers: the number k - the number of lines on the page and the number n - the line number in the text (1 <= k <= 200, 1 <= n <= 20000).

Output format
Output two numbers - the page number on which this line will be printed, and the line number on this page
 

It is forbidden to use any algorithmic constructions except arithmetic operations. See the list of forbidden operations in the line forbidden operators.
 
 
Example
Входные данные Выходные данные
1 50 1 1 1
2 20 25 2 5
3 15 43 3 13