Source: https://www.ac-caen.fr/dsden50/discip/maths/IMG/pdf/enigmes_ascenseur_v3.pdf