import java.util.Arrays; import java.util.Scanner; public class Main76 { public static void main(String[] args) { Main76 p = new Main76(); } public Main76() { solve(); } public void solve() { double[] p = new double[7]; double[] dp = new double[1000010]; dp[1] = 1.0000000000000000; dp[2] = 1.0833333333333333; dp[3] = 1.2569444444444444; dp[4] = 1.5353009259259260; dp[5] = 1.6915991512345676; dp[6] = 2.0513639724794235; double s = 0; for(int i=1;i<=6;i++){ double r = dp[i]-1; for(int j=i;j>0;j--) r -= dp[j]*p[i-j]; p[i-1] = r; s+=r; } p[6] = 1.0-s; for(int i=7;i