#include "bits/stdc++.h" #define Rep(i,n) for(int i=0;i> a(n,vector(m,0)); using namespace std; typedef long long ll; typedef pair P; template inline bool chmax(T& a, T b) {if(a inline bool chmin(T& a, T b) {if(a>b){a=b;return 1;}return 0;} int n; int main(){ cin >> n; vector dp(n); dp[0]=1; dp[1]=2; FOR(i,2,n){ dp[i]=dp[i-1]+dp[i-2]; } put(dp[n-1]); return 0; }