(3-D) medical imaging devices, such as CT and MRI, typically produce images as a set of slices. From these slices of images we can reconstruct the surface of the object. People have done much research on this field, and a classical method to simplify the problem is to just consider the surface reconstruction problem between two adjacent slices.
The first line contains an integer P (3 <= P <= 100), which is the number of points in the first polygon. The second line contains P pairs of integers, which give the coordinates of the P points in turn.
The third line contains an integer Q (3 <= Q <= 100), which is the number of points in the second polygon. The fourth line contains Q pairs of integers, which give the coordinates of the Q points in turn.
It is known that the distance between two planes is 10, and all the coordinates given above are in the range of [0, 2500].
The output contains only one line, which gives the minimum area of the close side surface. The result should be round to an integer.
3 0 0 2500 0 0 2500 4 0 0 0 2500 2500 2500 2500 0
3200050