https://oftob.com/ru/задачник-абрамян-решебник/minmax/711-minmax16
Minmax16