At a party n guests each brought one gift, and the gifts are redistributed so that every guest receives exactly one gift and nobody receives the gift they brought. Count the number of valid redistributions. Report the count modulo 1000000007.
Input format
A single line with one integer n.
Output format
A single integer: the number of redistributions with no self-match, modulo 1000000007.
Constraints
- 0 <= n <= 1000