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