#include <iostream>

using namespace std;

int F[50];

int main(void) {
	int n;
	cin >> n;
	F[0] = 1;
	F[1] = 1;
	for (int i = 2; i <= n; i++) {
		F[i] = F[i-1] + F[i-2];
	}
	cout << F[n] << endl;
	
}

