#include #include using namespace std; typedef long long ll; typedef unsigned long long ull; typedef long double ld; struct before_main_function { before_main_function() { cin.tie(0); ios::sync_with_stdio(false); cout<> N; dp[0][0] = 1.0; for (int i=1; i<=N; i++) { for (int k=1; k<=KINDS; k++) { dp[i][k] = dp[i-1][k]*double(k)/6.0 + dp[i-1][k-1]*double(6-(k-1))/6.0; } } cout << dp[N][6] << endl; return 0; }