Hedge Topiary

Our polygon-shaped bush needs a trim. We would like to cut it down to size so
that the remaining leaves of the bush form a new shape of our choosing, with
its centre sitting on the top of the stem - represented as the origin 
in both shapes.

figure[!h]
sample1.pdf
sample2.pdf
sample3.pdf
Bushes cut into beautiful shapes, as given in sample inputs 1, 2,  3.
figure

The original shape of the bush is a little unusual so it is not obvious
how large we can make the new shape without leaving some gaps in the design.

Find out the largest scaling factor that you can apply to the new shape to make it
fit into the old shape-meaning that there is no point contained by the re-scaled new
shape that was not contained by the old shape as well.

Input
	itemize
    One line containing the number of coordinates in the new shape,  ().
     further lines, the th of which contains the integer coordinates of the th
          vertex in the new shape's polygon,  ().
    One line containing the number of coordinates in the original shape,  ().
     further lines, the th of which contains the integer coordinates of the th
          vertex in the old shape's polygon,  ().
	itemize

  The old and new shapes are not always convex.
  However, the origin point is strictly inside (not on the bounds of) both shapes
  and neither of the shapes self-touch, self-intersect, or repeat any vertices.

Output
  Output the maximum amount by which we can scale the first given shape around
  the origin , such that it is fully contained by the bounds of the
  second given shape. This amount may be any number greater than ,
  meaning the shape may also need to become smaller.

  The output must be accurate to an absolute or relative error of at most
  .
