#include using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); int n; cin >> n; int a[100]; a[1] = 1; a[2] = 2; for (int i = 3; i <= n; i++) a[i] = a[i-1] + a[i-2]; cout << a[n] << endl; return 0; }