#P4936. Agent1
Agent1
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
京公网安备 11011102002149号