#P1976. 鸡蛋饼

鸡蛋饼

Description

Recently, Xiao x discovered another interesting problem about circles: there are 2N2N distinct points on a circle. Xiao x wants to connect these points with NN line segments (each point can be connected by exactly one segment), such that all segments do not intersect. He wants to know how many such connection schemes there are.

The answer is taken modulo 108+710^8+7.

Input Format

A single line containing a positive integer NN (1N29991 \le N \le 2999).

Output Format

A single line containing an integer representing the answer.

The answer is taken modulo 108+710^8+7.

24
4057031

Hint

Translated by ChatGPT 5