https://etudes.ru/etudes/ham-sandwich-theorem/4/