Number of PDP#4435

Number of PDP

1 second
64 megabytes
Easy

Determine the number of valid bracket sequences of length (consisting of opening and closing brackets), using both round and square brackets, such that no square brackets are nested inside any pair of round brackets.

Input

The input consists of a single line containing a non-negative integer , where 0 \leq n \leq 1000.

Output

Print the remainder when the number of valid bracket sequences is divided by 10^9 + 7.

Examples

Example 1

Loading
Loading