#include <iostream> using namespace std; int main() { int n=1, k; float total; cin >> k; while(1) { total += 1 / n; n++; if (total > k) { break; } } cout << total; return 0; }