#P2225. The nearest fraction

The nearest fraction

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.

9 4
3/1

Author

8600