Source: http://jl.maths-lfb.fr/1ES/probas/exercice_test_de_fabrication.pdf