The number of ways of selecting 3 squares on a chess board which lies on a diagonal of maximum length is