#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4")
#define ll long long
#define f first
#define s second
#define pb push_back
#define mp make_pair
#define o cout<<"BUG"<<endl;
#define IOS ios_base::sync_with_stdio(0);
#define en "\n"
#define FOR(i, j, n) for(int j = i; j < n; ++j)
#define forn(i, j, n) for(int j = i; j <= n; ++j)
#define nfor(i, j, n) for(int j = n; j >= i; --j)
#define sortv(vv) sort(vv.begin(), vv.end())
using namespace std;
int block;
const ll maxn=1e4+100,inf=1e18,LOG=20,mod=1e9+7;
#define int ll
int n, dp[maxn][maxn];
main()
{
cin >> n;
forn(1, i, n)
{
dp[i][i] = 1;
int sum = 0;
forn(1, j, n)
{
if(i + j > n) break;
dp[i + j][j] += sum;
dp[i + j][j] %= mod;
sum += dp[i][j];
sum %= mod;
}
}
int sum = 0;
forn(1, i, n)
{
sum += dp[n][i];
sum %= mod;
}
cout << sum;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CiAKI3ByYWdtYSBHQ0Mgb3B0aW1pemUoIk9mYXN0IikKI3ByYWdtYSBHQ0MgdGFyZ2V0KCJzc2Usc3NlMixzc2UzLHNzc2UzLHNzZTQiKQogCiNkZWZpbmUgbGwgbG9uZyBsb25nCiNkZWZpbmUgZiBmaXJzdAojZGVmaW5lIHMgc2Vjb25kCiNkZWZpbmUgcGIgcHVzaF9iYWNrCiNkZWZpbmUgbXAgbWFrZV9wYWlyCiNkZWZpbmUgbyBjb3V0PDwiQlVHIjw8ZW5kbDsKI2RlZmluZQlJT1MgaW9zX2Jhc2U6OnN5bmNfd2l0aF9zdGRpbygwKTsKI2RlZmluZSBlbiAiXG4iCiNkZWZpbmUgRk9SKGksIGosIG4pIGZvcihpbnQgaiA9IGk7IGogPCBuOyArK2opCiNkZWZpbmUgZm9ybihpLCBqLCBuKSBmb3IoaW50IGogPSBpOyBqIDw9IG47ICsraikKI2RlZmluZSBuZm9yKGksIGosIG4pIGZvcihpbnQgaiA9IG47IGogPj0gaTsgLS1qKQojZGVmaW5lIHNvcnR2KHZ2KSBzb3J0KHZ2LmJlZ2luKCksIHZ2LmVuZCgpKQogCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CmludCBibG9jazsKY29uc3QgbGwgbWF4bj0xZTQrMTAwLGluZj0xZTE4LExPRz0yMCxtb2Q9MWU5Kzc7CgojZGVmaW5lICBpbnQgbGwKCmludCBuLCBkcFttYXhuXVttYXhuXTsKCm1haW4oKQp7CgljaW4gPj4gbjsKCWZvcm4oMSwgaSwgbikKCXsKCQlkcFtpXVtpXSA9IDE7CgkJaW50IHN1bSA9IDA7CgkJZm9ybigxLCBqLCBuKQoJCXsKCQkJaWYoaSArIGogPiBuKSBicmVhazsKCQkJZHBbaSArIGpdW2pdICs9IHN1bTsKCQkJZHBbaSArIGpdW2pdICU9IG1vZDsKCQkJc3VtICs9IGRwW2ldW2pdOwoJCQlzdW0gJT0gbW9kOwoJCX0KCX0KCWludCBzdW0gPSAwOwoJZm9ybigxLCBpLCBuKQoJewoJCXN1bSArPSBkcFtuXVtpXTsKCQlzdW0gJT0gbW9kOwoJfQoJY291dCA8PCBzdW07Cn0=
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, or enum expected
#include <bits/stdc++.h>
^
Main.java:3: error: illegal character: '#'
#pragma GCC optimize("Ofast")
^
Main.java:4: error: illegal character: '#'
#pragma GCC target("sse,sse2,sse3,ssse3,sse4")
^
Main.java:6: error: illegal character: '#'
#define ll long long
^
Main.java:7: error: illegal character: '#'
#define f first
^
Main.java:8: error: illegal character: '#'
#define s second
^
Main.java:9: error: illegal character: '#'
#define pb push_back
^
Main.java:10: error: illegal character: '#'
#define mp make_pair
^
Main.java:11: error: illegal character: '#'
#define o cout<<"BUG"<<endl;
^
Main.java:12: error: illegal character: '#'
#define IOS ios_base::sync_with_stdio(0);
^
Main.java:12: error: class, interface, or enum expected
#define IOS ios_base::sync_with_stdio(0);
^
Main.java:13: error: illegal character: '#'
#define en "\n"
^
Main.java:13: error: class, interface, or enum expected
#define en "\n"
^
Main.java:14: error: illegal character: '#'
#define FOR(i, j, n) for(int j = i; j < n; ++j)
^
Main.java:14: error: class, interface, or enum expected
#define FOR(i, j, n) for(int j = i; j < n; ++j)
^
Main.java:14: error: class, interface, or enum expected
#define FOR(i, j, n) for(int j = i; j < n; ++j)
^
Main.java:15: error: illegal character: '#'
#define forn(i, j, n) for(int j = i; j <= n; ++j)
^
Main.java:15: error: class, interface, or enum expected
#define forn(i, j, n) for(int j = i; j <= n; ++j)
^
Main.java:15: error: class, interface, or enum expected
#define forn(i, j, n) for(int j = i; j <= n; ++j)
^
Main.java:16: error: illegal character: '#'
#define nfor(i, j, n) for(int j = n; j >= i; --j)
^
Main.java:16: error: class, interface, or enum expected
#define nfor(i, j, n) for(int j = n; j >= i; --j)
^
Main.java:16: error: class, interface, or enum expected
#define nfor(i, j, n) for(int j = n; j >= i; --j)
^
Main.java:17: error: illegal character: '#'
#define sortv(vv) sort(vv.begin(), vv.end())
^
Main.java:20: error: class, interface, or enum expected
int block;
^
Main.java:21: error: class, interface, or enum expected
const ll maxn=1e4+100,inf=1e18,LOG=20,mod=1e9+7;
^
Main.java:23: error: illegal character: '#'
#define int ll
^
Main.java:23: error: class, interface, or enum expected
#define int ll
^
Main.java:27: error: class, interface, or enum expected
main()
^
Main.java:30: error: class, interface, or enum expected
forn(1, i, n)
^
Main.java:33: error: class, interface, or enum expected
int sum = 0;
^
Main.java:34: error: class, interface, or enum expected
forn(1, j, n)
^
Main.java:37: error: class, interface, or enum expected
dp[i + j][j] += sum;
^
Main.java:38: error: class, interface, or enum expected
dp[i + j][j] %= mod;
^
Main.java:39: error: class, interface, or enum expected
sum += dp[i][j];
^
Main.java:40: error: class, interface, or enum expected
sum %= mod;
^
Main.java:41: error: class, interface, or enum expected
}
^
Main.java:44: error: class, interface, or enum expected
forn(1, i, n)
^
Main.java:47: error: class, interface, or enum expected
sum %= mod;
^
Main.java:48: error: class, interface, or enum expected
}
^
Main.java:50: error: class, interface, or enum expected
}
^
41 errors