Bob has an array of length n whose elements lie in the range [1,n]. He compared the adjacent elements of the array and prepared a string s of length n−1 of <, >, and = signs that show the result of the comparison between the adjacent elements of the array.
Formally,
Unfortunately, Bob lost the array and now he wonders how many distinct arrays of length n exist such that its elements are between 1 and n. Since the count can be very large, find this count modulo 109+7.
Two arrays are different if they differ at least one index.
Input format
Output format
Print the number of different arrays modulo 109+7.
Constraints
2≤n≤5×103s contains only <, >, and =
All the valid arrays are:-