#nt603. 古代猪文
古代猪文
The Pig's Ancient Text
Problem Source
SDOI2010
Problem Description
In short: compute
Input Format
Exactly one line: two numbers , separated by a space.
Output Format
Exactly one line: one number, the remainder of the answer divided by .
Sample Input
4 2
Sample Output
2048
Constraints
For all data, are guaranteed.