Олимпиадный тренинг

Задача 38187. Lines in a book


Задача

Темы: Целые числа
A book has K lines on one page. Thus, on the 1st page the lines from 1th to Kth are printed, on the second — from (K+1)th to (2*K)th, etc. Write a program that, by the number of the line in the text, determines the number of the page on which this line will be printed, and the ordinal number of this line on the page.

Input
Two numbers are entered: K - the number of lines printed on the page, and N - the line number (1<=K<=200 , 1<=N<=20000).

Imprint
Print two numbers - the number of the page on which this line will be printed, and the number of the line on the page.
 
Examples
# Input Output
1 50 1 1 1
2 20 25 2 5
3 15 43 3 13