Types: L: float, Polygon1: List[Tuple[int, int]], Polygon2: List[Tuple[int, int]]
Ranges: 0.1 < L < 50.0, 3 ≤ len(Polygon1) < 15, 3 ≤ len(Polygon2) < 15, 0 ≤ Polygon1[i][0] < 500, 0 ≤ Polygon1[i][1] < 500, 0 ≤ Polygon2[i][0] < 500, 0 ≤ Polygon2[i][1] < 500
Addtl Info: The input ends with a zero as a terminator.