#include using namespace std; int dp[60]; int main(){ int n;cin>>n; dp[0] = 1; for(int i = 0; n > i; i++){ dp[i+2]+=dp[i]; dp[i+1]+=dp[i]; } cout << dp[n] << endl; }