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