#include using namespace std; //#define int long long typedef long long ll; typedef pairpint; typedef vectorvint; typedef vectorvpint; #define pb push_back #define mp make_pair #define fi first #define se second #define ln <void chmin(T &t,U f){if(t>f)t=f;} templatevoid chmax(T &t,U f){if(ti)dp[i]+=x; else dp[i]+=dp[i-j]; } dp[i]=1+dp[i]/6.0; } return dp[K]<=x; } signed main(){ scanf("%d",&K); double lb=0,ub=1000000; rep(i,100){ double mid=(ub+lb)/2; if(C(mid))ub=mid; else lb=mid; } printf("%.20f\n",ub); return 0; }