- Time limit: 1.00 s
- Memory limit: 512 MB
Your task is to count the number of ways you can fill an grid using and tiles.
Input
The only input line has two integers and .
Output
Print one integer: the number of ways modulo .
Constraints
Example
Input:
4 7
Output:
781