236. 
Three numbers, , , , are drawn randomly and without replacement from the set . Three other numbers, , , , are then drawn randomly and without replacement from the remaining set of 997 numbers. Let be the probability that, after a suitable rotation, a brick of dimensions can be enclosed in a box of dimensions , with the sides of the brick parallel to the sides of the box. If is written as a fraction in lowest terms, what is the sum of the numerator and denominator? This problem is copyrighted by the American Mathematics Competitions.

Instructions for entering answers:
For questions or comments, please email markan@eudelic.com.
Try our new, free contest math practice test. All new, neverseenbefore problems.
I offer online AMC/AIME classes periodically. Join the mailing list to be informed next time they're offered.
Private coaching is also available.