#include <iostream> using namespace std; int n; int fib(int x) { if (x <= 0b10) return 1; return fib(x - 1) + fib(x - 2); } int main(void) { cin >> n; cout << fib(n) << endl; }