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<iostream>
#include<cstdio>
#include<map>
using namespace std;
long long n, s;
long long p[156] = { 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,1010824870255200,1732842634723200,2021649740510400,3032474610765600,4043299481020800,6064949221531200,10685862914126400,12129898443062400,21371725828252800,24259796886124800,30324746107656000,32057588742379200,37400520199442400,64115177484758400,74801040398884800,112201560598327200,149602080797769600,224403121196654400,448806242393308800,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600,897612484786617600 };
long long q[156];
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) {
	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;
}
int main() {
	for (int i = 0; i < 109; i++)q[i] = divisor_function(p[i], 1);
	while (true) {
		cin >> n; if (n == 0)break;
		for (int i = 1; i < 109; i++) {
			if (p[i] > n) { printf("%.11Lf\n", 1.0l*q[i - 1] / p[i - 1]); break; }
		}
	}
	return 0;
}