#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //cout << fixed << setprecision(15) << << endl; #include //#include "atcoder/all" using namespace std; //using namespace atcoder; typedef long long ll; #define pb push_back #define rep(i,n) for(int i=0;i<(n);i++) #define REP(i,n) for(int i=1;i<=(n);i++) #define P pair int mx8[] = {0,0,1,-1,-1,1,-1,1}; int my8[] = {-1,1,0,0,-1,-1,1,1}; int mx4[] = {1,-1,0,0}; int my4[] = {0,0,-1,1}; ll mod = 1000000007; int main(){ ios::sync_with_stdio(false); int n; cin >> n; double ans = 0; for(double i = 1; i < 100; ++i){ ans += pow((1/i),(double)n); } cout << fixed << setprecision(15) << ans << endl; }