Source: https://www.mathkang.org/pdf/kangourou2012c.pdf