{"raw_statement":[{"iden":"problem statement","content":"We have $2N$ cards, with ID numbers from $1$ through $2N$. Consider the following game using them.\nFirst, the dealer randomly split the cards into two piles of $N$ cards each. Here, the dealer also randomly chooses the order of cards in each pile. Then, the player repeatedly does the operation below until one pile becomes empty, and the number of operations done will be the score.\n\n*   Choose a positive integer $k$ and compare the $k$\\-th cards from the top in the two piles. ($k$ should not exceed the number of each pile.) Then, remove the card with the smaller ID number from the pile that contains it.\n\nAssume that a _cheater_ plays this game. That is, assume that the player can always see the ID numbers of all cards in both piles. Find the expected value of the score when the player plays optimally to minimize it, modulo $(10^9 + 7)$ (see Notes)."},{"iden":"notes","content":"*   The expected value in question will be a rational number. If we express it as a fractional number $\\frac{y}{x}$ where $x$ and $y$ are coprime positive integers, $x$ will be coprime with $P=10^9+7$, so print the only integer $z$ between $0$ and $P-1$ (inclusive) such that $xz \\equiv y \\pmod P$."},{"iden":"constraints","content":"*   $1 \\leq N \\leq 10^6$"},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$"},{"iden":"sample input 1","content":"1"},{"iden":"sample output 1","content":"1"},{"iden":"sample input 2","content":"3"},{"iden":"sample output 2","content":"486111118"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}