#include using namespace std; using LL = long long; using ULL = unsigned long long; #define rep(i,n) for(int i=0; i<(n); i++) int main() { LL K; cin >> K; double ans = 0.; for(LL i = 1; i <= K; i++) { ans += 1 / double(K * i); } cout << fixed << setprecision(10); cout << ans << endl; return 0; }