Chips
시간 제한2초메모리 제한2048 MB
칩이 n개씩 든 통 k개가 있을 때, 바실리가 처음으로 빈 통을 집는 순간까지 지날 수 있는 최소와 최대 시간을 구한다.
문제
Programmer Vasiliy bought cans of chips, with chips in each can. Now he is watching a movie and eating chips. After each minute of the movie, our hero takes one of the cans and eats a chip from it.
At a certain moment, Vasiliy took one of the cans, but there were no chips left in it. What is the minimum and maximum number of minutes that could have passed since the start of the movie?
입력
The input consists of a single line containing two integers and separated by a space: the number of cans of chips and their size, respectively ().
출력
Output two integers separated by a space: the minimum and maximum number of minutes that could have passed before Vasiliy took a can without chips.