- Time limit: 1.00 s
- Memory limit: 512 MB
Your task is to calculate the number of ways an integer can be represented as a sum of three distinct positive integers.
For example, if , there are solutions:
Input
The only input line has an integer .
Output
Print one line: the number of solutions.
Example
Input:
9
Output:
3
Grading
In each test . You will get points for the task if your program gives the correct answer in each test.