#P116. [KSC001B] A problem about languages
[KSC001B] A problem about languages
Source
This problem is adapted from Long Long OJ. All rights reserved.
Problem Description
There are languages and several teams. It is known that any two teams master different sets of languages, and any two teams share at least one common language. Please find the maximum number of teams possible. Output the answer modulo .
Input Format
A positive integer .
Output Format
A positive integer representing the maximum number of teams.
Samples
1
1
2
2
1000
43504463
Data Range
- For of the data, .
- For of the data, .
- For of the data, .