- Time limit: 1.00 s
- Memory limit: 512 MB
Your task is to count the number of ways numbers can be divided into two sets of equal sum.
For example, if , there are four solutions:
- and
- and
- and
- and
Input
The only input line contains an integer .
Output
Print the answer modulo .
Constraints
Example
Input:
7
Output:
4