Pondo Exponentiation
Problem Statement
Pondo has two integers x and y, he asks you to help him calculate xy, since this number may be large, make sure to give back the answer modulo 109+7.
Input Format
Your first and only line will contain two space-separated integers x and y.
Output Format
Output xy modulo 109+7.
Constraints
- 1≤x,y≤109
Sample Cases
2 10
1024
1000000000
312556845
Explanation 2
Make sure to modulo by 109+7.
Comments0
No comments yet
Be the first to comment.
New comment
Log in to join the discussion.