#include<bits/stdc++.h> using namespace std; int main(){ int a,b=1; float h=0; cin>>a; while(b<=a){ h=h+1.0/b; b++; } printf("%.3f",h); return 0; } /************************************************************** Problem: 1014 User: cyp Language: C++ Result: Accepted Time:7 ms Memory:2072 kb ****************************************************************/