#include <bits/stdc++.h> using namespace std; int main() { double a=1; int n=2,k; cin >> k; for(int i=2;a<=k;i++) { a+=1/k; } cout << a; }