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