100 atcoder#ABC178C. [ABC178C] Ubiquity
[ABC178C] Ubiquity
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