Given n orders, each with a pickup Pi and delivery Di (Pi must come before Di), count the number of valid sequences of all 2n events, mod 10^9+7.
Input: A non-negative integer n.
Output: Integer mod 10^9+7.
Input: 1
Output: 1
Explanation: Only P1 D1.Input: 2
Output: 6
Explanation: Six valid orderings.Input: 3
Output: 90
Explanation: 90 valid orderings.0 <= n <= 500