Given
Note:
- The plus sign and the equal sign each require two matchsticks.
- If
, then and are regarded as different equations ( ) - All
matchsticks must be used.
Input Specification
One line: an integer
Output Specification
One line, indicating the number of different equations that can be spelled.
Sample Input 1
Copy
14
Sample Output 1
Copy
2
Explanation of Sample Output 1
The 2 equations are
Sample Input 2
Copy
18
Sample Output 2
Copy
9
Explanation of Sample Output 2
The 9 equations are:
Comments