Source: https://irma.math.unistra.fr/~delzant/coursproba4.pdf