- Time limit: 1.00 s
- Memory limit: 512 MB
A permutation of integers is called beautiful if there are no adjacent elements whose difference is .
Given , your task is to count the number of beautiful permutations.
Input
The only input line contains an integer .
Output
Print the number of beautiful permutations of modulo .
Constraints
Example
Input:
5
Output:
14