Problem Statement
Pondo has two integers and , he asks you to help him calculate , since this number may be large, make sure to give back the answer modulo .
Input Format
Your first and only line will contain two space-separated integers and .
Output Format
Output modulo .
Constraints
- ## Sample Cases ### Input 1
2 10
Output 1
1024
Input 2
1000000000
Output 2
312556845
Explanation 2
Make sure to modulo by .
Comments