#include <bits/stdc++.h> using namespace std; int main() { int a=1,b=1,c=0,d; double ans; cin>>d; for(int i=1;i<=d;i++){ c=a+b; a=b; b=c; ans=b/a*1.0+ans; } cout <<fixed<<setprecision(4) <<ans <<endl; return 0; }