#include <stdio.h>
int main()
{
int i, n;
double item, sum;
while (scanf("%d", &n) != EOF)
{
sum = 0;
for (i = 1; i <= n; i++)
{
item = 1.0/i;
sum = sum+item;
}
printf("sum = %f\n", sum);
}
return 0;
}