A book page contains k lines. Page 1 has lines 1 through k, page 2 has lines k+1 through 2k, and so on. Given the total line number n, determine which page it belongs to and which line on that page it is.
A single line containing two positive integers k and n, separated by a space.
Two numbers: the page number and the line number on that page (separated by a space).
This editor records if code is AI assisted. Write it yourself — if you are stuck, ask your teacher.