#include<stdio.h>
int main()
{
int i =1;
double sum = 0.0;
scanf("%d",&i);
for(int j =1;j<=i;j++)
{
sum+=1.0/j;
}
printf("%.6lf\n",sum);
return 0;
}
#include<stdio.h>
int main()
{
int i =1;
double sum = 0.0;
scanf("%d",&i);
for(int j =1;j<=i;j++)
{
sum+=1.0/j;
}
printf("%.6lf\n",sum);
return 0;
}