The perineal branches of the posterior femoral cutaneous nerve are distributed to the skin at the upper and medial side of the thigh.