We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Mathematics
- Number Theory
- Superpowers of 2
Superpowers of 2
Superpowers of 2
You will be given two integers . You are required to output the result of mod .
Constraints
Input Format
First and only line of the input will contain two integers separated by a single blank space.
Output Format
Output the desired result in a single line.
Sample Input
2 7
Sample Output
2
Explanation
, , and mod is .