406778: GYM102538 D Disjoint LIS

Memory Limit:0 MB Time Limit:3 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

D. Disjoint LIStime limit per test3 secondsmemory limit per test512 mebibytesinputstandard inputoutputstandard output

Let the LIS of a permutation be the length of its longest increasing subsequence.

A permutation is good if it is possible to find two increasing subsequences of length LIS that do not share any common elements.

Given $$$n$$$, find the number of good permutations with $$$n$$$ elements. As the answer may be large, you only need to find it modulo $$$998\,244\,353$$$.

Input

The first line of input contains one integer $$$n$$$ ($$$1 \leq n \leq 75$$$): the number of elements.

Output

Output one integer: the number of good permutations with $$$n$$$ elements, modulo $$$998\,244\,353$$$.

ExampleInput
6
Output
132

Source/Category

加入题单

上一题 下一题 算法标签: