#include using namespace std; using uint = unsigned int; using lint = long long int; using ulint = unsigned long long int; template using V = vector; template using VV = V< V >; template void assign(V& v, int n, const U& a) { v.assign(n, a); } template void assign(V& v, int n, const Args&... args) { v.resize(n); for (auto&& e : v) assign(e, args...); } int main() { cin.tie(nullptr); ios_base::sync_with_stdio(false); V res(51, 1); for (int i = 2; i <= 50; ++i) { res[i] = res[i - 1] + res[i - 2]; } int n; cin >> n; cout << res[n] << '\n'; }