For any 1-indexed array of consecutive positive integers
A subsequence is a sequence which is derived from the original sequence by deleting zero or more elements without changing the order of the remaining elements.
Given an integer
Constraints
For all subtasks:
Subtask 1 [10%]
Subtask 2 [30%]
Subtask 3 [60%]
No additional constraints.
Input Specification
You will receive one line of input containing the positive integer
Output Specification
Output the number of strategic subsequences, modulo
Sample Input
Copy
4
Sample Output
Copy
7
Explanation
The strategic subsequences of
Comments