#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main()
{
int n;
cin >> n;
unsigned long long int a = 0;
a = (pow((sqrt(5) + 1), n) - pow((1 - sqrt(5)), n)) / sqrt(5) / pow(2, n);
cout << fixed << setprecision(2) << 1.0*a;
}