#include<iostream>
#include<iomanip>
using namespace std;
int main() {
int n,i;
double a, b;
cin >> n;
a = 1.0;
b = 1.0;
for (i = 0; i < n; i++) {
a = a* (1 + sqrt(5)) / 2;
b = b* (1 - sqrt(5)) / 2;
}
cout << fixed<<setprecision(2)<<(a - b) / sqrt(5);
return 0;
}