#include using lint = long long; void solve() { int n; std::cin >> n; if (n <= 1) { std::cout << 1 << std::endl; return; } lint a = 1, b = 1; while (n--) { lint s = a + b; a = b; b = s; } std::cout << a << std::endl; } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }