100 atcoder#ABC055B. [ABC055B] Training Camp
[ABC055B] Training Camp
Score : points
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 .
3
6
- 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 .
10
3628800
100000
457992974
Print the answer modulo .