Task
Time limit:
1000 ms,
Memory limit:
256 Mb
A book contains k lines on one page. Thus, on the 1st page the lines from the 1st to the kth are printed, on the second - from the (k + 1) -th to (2k) -th, 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.
It is forbidden to use any algorithmic constructs (if, while, for, etc.), except for arithmetic operations
Input: The program receives 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: Output two numbers - the page number on which this line will be printed, and the line number on this page
Examples
№ |
Входные данные |
Выходные данные |
1 |
50 1 |
1 1 |
2 |
20 25 |
2 5 |
3 |
15 43 |
3 13 |
Prohibited statements:if;?;while;min;for;max;ceil