Source: https://www.cpgemaroc.com/cours/sup/phch/solutionsaqueuses.pdf