#ABC178C. [ABC178C] 无处不在
[ABC178C] 无处不在
No testdata at current.
No submission language available for this problem.
Score : points
Problem Statement
How many integer sequences of length satisfy all of the following conditions?
- There exists some such that holds.
- There exists some such that holds.
The answer can be very large, so output it modulo .
Constraints
- is an integer.
Input
Input is given from Standard Input in the following format:
Output
Print the answer modulo .
2
2
Two sequences and satisfy all conditions.
1
0
869121
2511445