Source: https://problemata.hypotheses.org/files/2016/09/scenario-pyth-revu-sept2.pdf