Source: http://www.champsperdrix.fr/IMG/pdf/correction_enigme_3.pdf