#include<iostream> using namespace std; int a[1000005]; int main() { int n; cin>>n; a[1]=2; a[2]=3; for(int i=3;i<=n;i++) { a[i]=a[i-1]+a[i-2]; } cout<<a[n]<<endl; }