Sum of powers 2
Very easy
Execution time limit is 2 seconds
Runtime memory usage limit is 128 megabytes
Find the sum .
Input
Two positive integers and .
Output
Print the value of the sum modulo .
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 33%