To compare race tracks you need their lengths. A track is flat, with no elevation. It is described by two simple polygons, one of which lies completely inside the other. The track is the region between the two polygons, and both boundaries belong to the track.
The length of the track is the shortest distance you have to travel to complete one lap, that is, the length of the shortest closed route that stays inside the track and goes around the inner polygon once. Such a route may run along the very edge of the track, and it may turn arbitrarily sharply at a corner.
The input consists of:
All coordinates are integers. For both polygons the vertices are given in counterclockwise order, and the boundaries of the two polygons neither intersect nor touch each other.
Print the length of the track on one line, rounded to exactly six digits after the decimal point. Print all six digits even when the length is an integer.