#include<bits/stdc++.h> using namespace std; int main(){ int a=1,b=1,k,s=0; cin>>k; for(int i=3;i<=k;i++){ s=a; a=b; b=s+b; } cout<<b; return 0; }