Junyi is an avid chess player. He would like to know how many ways it is possible to place rooks on an chessboard such that no rook are in an attacking position.
A rook can only move horizontally and vertically from its current position and two rooks are in an attacking position if one is on the path of the other.
Input Specification
The first line will contain two integers .
Output Specification
The number of ways to place rooks on an chessboard such that no rooks are in an attacking position.
Sample Input
4 4
Sample Output
24
Comments
This comment is hidden due to too much negative feedback. Show it anyway.