luogu#P4936. Agent1
Agent1
Background
On November 17, 2018, Hong Kong, China will host an XM war, where ENLIGHTENED and RESISTANCE from all over the world will fight. An ENLIGHTENED headquarters in some place also wants to send Agents to join this XM war, fighting side by side with ENLIGHTENED from other places.
Problem Description
An ENLIGHTENED headquarters in some place has Agents, and each Agent has a different ability value. Now the ENLIGHTENED operation commander wants to send two teams of Agents, Team and Team , to take part in the XM war. However, the two teams must satisfy two requirements:
- The ability value of the strongest
Agentin Team must be less than the ability value of the weakestAgentin Team . - Both Team and Team must have at least one person.
Not all Agents must go to the XM war. The impatient ENLIGHTENED operation commander wants to know how many different ways there are to arrange Agents to join the war. Since the answer may be very large, you only need to output the value of the answer modulo .
Input Format
The input contains only one line, an integer .
Output Format
Output the answer modulo .
3
5
6
129
Hint
For of the testdata, .
For of the testdata, .
For of the testdata, .
For of the testdata, .
Translated by ChatGPT 5