100 atcoder#ABC055B. [ABC055B] Training Camp

[ABC055B] Training Camp

Score : 200200 points

Problem Statement

Snuke loves working out. He is now exercising NN times.

Before he starts exercising, his power is 11. After he exercises for the ii-th time, his power gets multiplied by ii.

Find Snuke's power after he exercises NN times. Since the answer can be extremely large, print the answer modulo 109+710^{9}+7.

Constraints

  • 1N1051 \leq N \leq 10^{5}

Input

The input is given from Standard Input in the following format:

NN

Output

Print the answer modulo 109+710^{9}+7.

3
6
  • After Snuke exercises for the first time, his power gets multiplied by 11 and becomes 11.
  • After Snuke exercises for the second time, his power gets multiplied by 22 and becomes 22.
  • After Snuke exercises for the third time, his power gets multiplied by 33 and becomes 66.
10
3628800
100000
457992974

Print the answer modulo 109+710^{9}+7.