#include using namespace std; typedef long long ll; #define vll vector int main() { ll N; cin >> N; ll rs = 1; const ll MOD = 1000000000 + 7; for(ll i = 0; i < N - 3; i++){ rs *= 2; rs %= MOD; } rs *= N; rs %= MOD; cout << rs << endl; return 0; }