#include #include using namespace std; #define rep(i,n) for(int i=0;i<(n);i++) #define ll long long #define MD 1000007 int main(){ ll N, N1, N2, res; cin>>N; N1 = N/2; N2 = N-N1; N1 %= MD; N2 %= MD; res = (N1 + 1) * (N2 + 1) - 1; res %= MD; cout<