#include "bits/stdc++.h" using namespace std; #define DEBUG(x) cout<<#x<<": "< #define vl vector #define vii vector< vector > #define vll vector< vector > #define vs vector #define pii pair #define pis pair #define psi pair const int inf = 1000000001; const ll INF = 1e16; #define MOD 1000000007 #define mod 1000000009 #define pi 3.14159265358979323846 #define Sp(p) cout< > > adj(N, vector< pair >()); vll hyou(8, vl(8, 0)); vl d(N, INF); vi r(8); int main() { int n, i, j; cin >> n; vi C = { 1, 6, 15, 20, 15, 6, 1 }; double ans = 1; int fugou = -1; for (i = 5; i >= 1; i--) { ans += fugou * pow((double)i / 6, n) * C[6 - i]; fugou *= -1; } Sp(ans); }