#abc055b. [abc055_b]Training Camp
[abc055_b]Training Camp
Problem Statement
Snuke loves working out. He is now exercising times.
Before he starts exercising, his power is . After he exercises for the -th time, his power gets multiplied by .
Find Snuke's power after he exercises times. Since the answer can be extremely large, print the answer modulo .
Constraints
Input
The input is given from Standard Input in the following format:
Output
Print the answer modulo .
Sample Input 1
Sample Output 1
- After Snuke exercises for the first time, his power gets multiplied by and becomes .
- After Snuke exercises for the second time, his power gets multiplied by and becomes .
- After Snuke exercises for the third time, his power gets multiplied by and becomes .
Sample Input 2
Sample Output 2
Sample Input 3
Sample Output 3
Print the answer modulo .