Jogging along the Yangtze River
题号:NC205075
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

Given you an infinite 2-dimensional plane, and find all paths from (0,0) to (2n,0) with some limitation factors:

1.You cannot step to points that under the y-axis.

2.For every step you can perform one of the following operations:

(1) move right for 2 steps, e.g. from (x, y) to (x+2, y)

(2) move right, then move up, e.g. from (x, y) to (x+1, y+1)

(3) move right, then move down, e.g. from (x, y) to (x+1, y-1)

Now you must find out the numbers of different operation sequences.

输入描述:

The only line contains one integer 

输出描述:

Output one integer, representing the desired answer modulo .
示例1

输入

复制
1

输出

复制
2
示例2

输入

复制
2

输出

复制
6

说明