#include <bits/stdc++.h> using namespace std; int main() { int f[50] = {0, 1, 2}; for (int i = 3; i < 50; i++) { f[i] = f[i - 1] + f[i - 2]; } int n; cin >> n; printf("%d", f[n]); return 0; }