Number Partitioning#10026

Number Partitioning

1 second
64 megabytes
Very easy

Given a positive integer , your task is to find the number of ways to partition this number into positive summands such that the sums of the summands in even and odd positions are equal. Additionally, at no point in the partition should the sum of the summands in even positions exceed the sum of those in odd positions (the summands are numbered starting from ).

For instance, when N=6, there are valid partitions:

3+3, 2+2+1+1, 2+1+1+2, 1+1+2+2, 1+1+1+1+1+1.

The result should be provided modulo (10^9+9).

Constraints: 0 < N \le 10^6.

Input

The input consists of a single line containing the integer .

Output

Output a single line with the answer to the problem.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading