#include<cstdio>
int main(){
  double n,a=0;
  scanf("%lf",&n);
  for(int i=1;i<=n;i++)a+=1.0/i;
  printf("%.6lf",a);
}