#include <stdio.h> int main() { int n; float h=0; scanf("%d",&n); for(int m = 1;m<=n;m++) { h+=1.0/m; } printf("%f",h); return 0; }