10266: CF EDU - Binary Search - Step 5 - B. Multiplication Table
[Creator : ]
Description
Peter compiled a multiplication table of size $n×n$. The cell in the $i$-th row and $j$-th column contains the value $i⋅j$. Peter was interested in the question: which number in the table is $k$-th in ascending order? Help Peter answer this question.
Input
The input contains two integers $n,k\ (1≤n≤10^5,\ 1≤k≤n^2)$.
Output
Print one integer, $k$-th number in ascending order in the table.
Sample 1 Input
3 4
Sample 1 Output
3
Sample 2 Input
5 16
Sample 2 Output
10