Problem: Teiji is a number theory lover. All numbers are his friends - so long as they are integers. One day, while preparing for the next class as a teaching assistant, he is interested in a number-theoretical function called the divisor function. The divisor function σ(n) is defined as the sum of all positive divisors of n. “How fast does this σ(n) grow?” he asked himself. Apparently, σ(n) grows fast as n increases, but it is hard to estimate the speed of the growth. He decided to calculate the maximum value of σ(n)/n on 1 ≤ n ≤ k, for various k.

While it is easy for small numbers, it is tough to calculate many values of the divisor function by hand. Tired of writing thousands of digits, he decided to solve the problem with the help of a computer. But there is a problem: he is not familiar with computer programming. He asked you, a talented programmer, for help.

Please write a program to help him.



Input

The input contains a series of test cases. Each test case is described by a line, which contains a single integer k (1 ≤ k ≤ 1015 ). The input ends with a line containing a zero, which should not be processed.

Output

For each test case, output the maximum value of σ(n)/n where 1 ≤ n ≤ k in a line. Each value should be printed with six digits after the decimal point, and should not contain an absolute error greater than 10-6.

Example

Input

1
2
3
10
50
0


Output

1.000000
1.500000
1.500000
2.000000
2.583333

Solution (in CPP):

Solution:
#include <map>
#include <vector>
#include <iomanip>
#include <iostream>
#include <algorithm>
using namespace std;
vector<long long> A004394 = {
	1, 2, 4, 6, 12,
	24, 36, 48, 60, 120,
	180, 240, 360, 720, 840,
	1260, 1680, 2520, 5040, 10080,
	15120, 25200, 27720, 55440, 110880,
	166320, 277200, 332640, 554400, 665280,
	720720, 1441440, 2162160, 3603600, 4324320,
	7207200, 8648640, 10810800, 21621600, 36756720,
	61261200, 73513440, 122522400, 147026880, 183783600,
	367567200, 698377680, 735134400, 1102701600, 1163962800,
	1396755360, 2327925600, 2793510720, 3491888400, 6983776800,
	13967553600, 20951330400, 27935107200, 41902660800, 48886437600,
	80313433200, 160626866400, 321253732800, 481880599200, 642507465600,
	963761198400, 1124388064800, 1927522396800, 2248776129600, 3373164194400,
	4497552259200, 4658179125600, 6746328388800, 9316358251200, 13974537376800,
	18632716502400, 27949074753600, 32607253879200, 55898149507200, 65214507758400,
	97821761637600, 130429015516800, 144403552893600, 195643523275200, 288807105787200,
	433210658680800, 577614211574400, 866421317361600
};
std::map<unsigned long long, unsigned> prime_factorize(unsigned long long x) {
	std::map<unsigned long long, unsigned> ret;
	for (unsigned i = 2; 1ULL * i * i <= x; i++) {
		while (x % i == 0) x /= i, ret[i]++;
	}
	if (x != 1) ret[x]++;
	return ret;
}
unsigned long long divisor_function(unsigned long long x, int r = 1) {
	std::map<unsigned long long, unsigned> res = prime_factorize(x);
	unsigned long long ret = 1;
	for (std::pair<unsigned long long, unsigned> w : res) {
		unsigned long long mulexp = 1, mul = 1, sum = 1;
		for (int i = 0; i < r; i++) mulexp *= w.first;
		for (int i = 0; i < w.second; i++) mul *= mulexp, sum += mul;
		ret *= sum;
	}
	return ret;
}
long long n;
int main() {
	while (cin >> n, n) {
		int ptr = lower_bound(A004394.begin(), A004394.end(), n + 1) - A004394.begin() - 1;
		cout << fixed << setprecision(15) << 1.0 * divisor_function(A004394[ptr], 1) / A004394[ptr] << endl;
	}
	return 0;
}