#include using namespace std; #define int long long int f(int a,int b){ return (a+1)*(b+1)%1000007; } signed main(){ int n;cin>>n; cout<