#include <stdio.h>
int main ()
{
int n,i;
double sum = 0.0,a = 2,b = 1,t;
scanf("%d",&n);
for(i = 0;i < n; i++)
{
sum += 1.0*a/b;
t = a;
a= a+b;
b = t;
}
printf("%.2f",sum);
return 0;
}