Problem Description
Find the fraction closest to sqrt(N), the denominator of the fraction is no more than M.
Input
The input consists of multiple test cases.For each case the input contains two integers N and M, 1<=N<=1000000, 1<=M<=1000.
Output
For each case output one line, contaning the fraction that in the form "A/B" where A and B are positive integers with no common factors greater than one.
Sample Input
9 4
Sample Output
3/1
http://www.acmerblog.com/hdu-2225-the-nearest-fraction-3455.html