Two chess pieces, a rook and a knight, stand on a standard chessboard 8×8 in size. The positions in which they are situated are known. It is guaranteed that none of them beats the other one.
Your task is to find the number of ways to place another knight on the board so that none of the three pieces on the board beat another one. A new piece can only be placed on an empty square.
Output
Print a single number which is the required number of ways.