#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; bool rcmp(int a, int b) { return a>b; } typedef long long LL; class mypcmp { public: bool operator()(const int& a, const int& b) { return a>=1; } r=(mx[0][0]+mx[0][1])%MOD; return r; } int main() { int i; LL n; scanf("%lld", &n); // f[0]=1; f[1]=1; f[2]=2; ==> f[n]-1 printf("%d\n", (fib(n)-1+MOD)%MOD); return 0; }