#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a dp(MAX); dp[1]=1.0000000000000000; dp[2]=1.0833333333333333; dp[3]=1.2569444444444444; dp[4]=1.5353009259259260; dp[5]=1.6915991512345676; dp[6]=2.0513639724794235; vector p(7); p[1]=1.0/12; p[2]=2.0/12; p[3]=3.0/12; p[4]=1.0/12; p[5]=3.0/12; p[6]=2.0/12; for(int i=7;i>t; while(t--){ int n; cin>>n; cout<