#include #include #include #include #include #include #include #include #include #include #include #include #define mod 1000000007; using namespace std; typedef long long ll; typedef pair Pr; ll memo[52]; int main() { int N; cin >> N; memo[0] = 1; memo[1] = 1; for (int i = 1; i < N; i++) { memo[i + 1] = (memo[i] + memo[i - 1]); } cout << memo[N] << endl; return 0; }