#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int a[30];
double tot = 0 , b[30];
int main()
{
a[0] = 1, a[1] = 2;
for(int i = 2; i < 25; i++)
a[i] = a[i-1] + a[i-2];
for(int i = 1; i <= 20; i++)
{
b[i] = 1.0*a[i]/a[i-1];
tot += b[i];
}
printf("%.5lf\n", tot);
return 0;
}
#include <cstdio>
#include <cstring>
using namespace std;
int a[30];
double tot = 0 , b[30];
int main()
{
a[0] = 1, a[1] = 2;
for(int i = 2; i < 25; i++)
a[i] = a[i-1] + a[i-2];
for(int i = 1; i <= 20; i++)
{
b[i] = 1.0*a[i]/a[i-1];
tot += b[i];
}
printf("%.5lf\n", tot);
return 0;
}