Number of ways of selecting three squares on a chessboard so that all the three be on a diagonal line of the board or parallel to it is