#P1024. 比特串 (Bit Strings)
比特串 (Bit Strings)
Source: CSES Problem Set (Task 1617)
Link: https://cses.fi/problemset/task/1617
Category: Introductory Problems
- Time limit: 1.00 s
- Memory limit: 512 MB
Your task is to calculate the number of bit strings of length .
For example, if , the correct answer is , because the possible bit strings are 000, 001, 010, 011, 100, 101, 110, and 111.
Input
The only input line has an integer .
Output
Print the result modulo .
Constraints
Example
Input:
3
Output:
8