#include<bits/stdc++.h> using namespace std; int main() { int n; cin >>n; int a=1+sqrt(5),b,c=1-sqrt(5),d; b=a/2; d=c/2; printf("%.2lf",(pow(b,n)-pow(d,n))/sqrt(5)); return 0; }