#include #include #include #include using namespace std; using ll = long long; int n, k; int cnt[2][61]; int a[2][6]={{1,2,3,4,5,6}, {4,4,5,5,6,6}}; void dfs(int step, int sum, int t){ if(step==n){ cnt[t][sum]++; return; } for(int i=0; i<6; i++){ if(t&&step> n >> k; dfs(0, 0, 0); dfs(0, 0, 1); for(int i=1; i<=60; i++) cnt[0][i]+=cnt[0][i-1]; double ans=0, p=1.0/cnt[0][60]; for(int i=1; i<=60; i++) ans+=p*cnt[1][i]*p*cnt[0][i-1]; printf("%.10f\n", ans); return 0; }