Four numbers $a_1$, $a_2$, $a_3$, $a_4$ are drawn at random without replacement from the set $\{1, 2, \ldots, 1000\}$. Four other numbers $b_1$, $b_2$, $b_3$, $b_4$ are then drawn randomly and without replacement from the remaining set of $996$ numbers. Let $p$ be the probability that, after suitable rotation, a four-dimensional brick of dimensions $a_1 \times a_2 \times a_3\times a_4$ can be enclosed in a four-dimensional box of dimensions $b_1 \times b_2 \times b_3\times b_4$, with the sides of the brick parallel to the sides of the box. If $p$ is written as a fraction in lowest terms, what is the sum of the numerator and denominator?
← 返回第 502 题