Male athletes and female athletes should line up separately.
Male: A (male, male)
Re-ranked women: A(n, n)
Finally, the whole line A (2,2)
If you agree with my answer, please click "adopt as satisfactory answer" in the lower left corner. I wish you progress in your study!