Nick is in charge of managing a lawn which can be represented as a convex polygon.
Since he didn’t manage the lawn for a long time, the grass has grown up too long and he doesn’t like it. So, he decided to mow the grass in the lawn.
He can either mow the grass by hand or hire a mowing machine.
Mowing by hand costs A euro(s) per unit area and hiring a mowing machine costs B euro(s) per unit area. Unfortunately, the circle-shaped mowing machine must not get out of his lawn while mowing, that is, any point of the machine must be strictly inside the lawn or on the border. The machine cuts all the grass in its circle.
Any grass is considered to be cut only once even though the machine passed over it several times.
Find out the minimal amount of money he needs for mowing his lawn.