#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int f[1000005];
f[0] = 0;
f[1] = 1;
for (int i = 2; i <= n; ++i) {
f[i] = f[i - 1] + f[i - 2];
}
cout << f[n];
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbjsKCWNpbiA+PiBuOwoJCglpbnQgZlsxMDAwMDA1XTsKCWZbMF0gPSAwOwoJZlsxXSA9IDE7Cglmb3IgKGludCBpID0gMjsgaSA8PSBuOyArK2kpIHsKCQlmW2ldID0gZltpIC0gMV0gKyBmW2kgLSAyXTsKCX0KCQoJY291dCA8PCBmW25dOwoJCgkKCXJldHVybiAwOwp9