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 <algorithm>
using namespace std;
typedef long long Int;
#define REP(i,n) for(int i=0;i<(int)n;++i)

long long table[] = {
1ll
,2ll
,4ll
,6ll
,12ll
,24ll
,36ll
,48ll
,60ll
,120ll
,180ll
,240ll
,360ll
,720ll
,840ll
,1260ll
,1680ll
,2520ll
,5040ll
,10080ll
,15120ll
,25200ll
,27720ll
,55440ll
,110880ll
,166320ll
,277200ll
,332640ll
,554400ll
,665280ll
,720720ll
,1441440ll
,2162160ll
,3603600ll
,4324320ll
,7207200ll
,8648640ll
,10810800ll
,21621600ll
,36756720ll
,61261200ll
,73513440ll
,122522400ll
,147026880ll
,183783600ll
,367567200ll
,698377680ll
,735134400ll
,1102701600ll
,1163962800ll
,1396755360ll
,2327925600ll
,2793510720ll
,3491888400ll
,6983776800ll
,13967553600ll
,20951330400ll
,27935107200ll
,41902660800ll
,48886437600ll
,80313433200ll
,160626866400ll
,321253732800ll
,481880599200ll
,642507465600ll
,963761198400ll
,1124388064800ll
,1927522396800ll
,2248776129600ll
,3373164194400ll
,4497552259200ll
,4658179125600ll
,6746328388800ll
,9316358251200ll
,13974537376800ll
,18632716502400ll
,27949074753600ll
,32607253879200ll
,55898149507200ll
,65214507758400ll
,97821761637600ll
,130429015516800ll
,144403552893600ll
,195643523275200ll
,288807105787200ll
,433210658680800ll
,577614211574400ll
,866421317361600ll
,1010824870255200ll
,1732842634723200ll
,2021649740510400ll
,3032474610765600ll
,4043299481020800ll
};
double table2[]={1.000000,1.500000,1.750000,2.000000,2.333333,2.500000,2.527778,2.583333,2.800000,3.000000,3.033333,3.100000,3.250000,3.358333,3.428571,3.466667,3.542857,3.714286,3.838095,3.900000,3.936508,3.966032,4.051948,4.187013,4.254545,4.294372,4.326580,4.363636,4.396364,4.398268,4.509091,4.581818,4.624709,4.659394,4.699301,4.734545,4.736597,4.778866,4.855944,4.896750,4.933476,4.975730,5.013048,5.015220,5.059975,5.141588,5.154474,5.182394,5.184434,5.193133,5.237611,5.276893,5.279179,5.326290,5.412198,5.455152,5.457299,5.476629,5.500611,5.508844,5.557868,5.647511,5.692332,5.694573,5.714743,5.739768,5.748359,5.762366,5.793981,5.796262,5.816792,5.842252,5.842264,5.888619,5.890938,5.911803,5.937691,5.946578,5.961068,5.993773,5.996133,6.017371,6.030712,6.043722,6.078575,6.080968,6.102506,6.129230,6.138403,6.153361,6.187121,6.189557,6.211480};
/*
long long divisor(long long n){
	long long i = 1 , sum = 0;
	for(; i*i < n ; i++) if(n%i == 0) sum += i + n/i;
	if(i*i == n) sum += i;
	return sum;
}
*/
int main(){
	int X = sizeof(table) / sizeof(table[0]);
	long long n;
	while(cin >> n && n){
		double mx = 0;
		printf("%.6lf\n",table2[upper_bound(table,table+X,n)-table-1]);
	}
}