# Problem B: Electrophoretic

Scientist Frank, majoring in electrochemistry, has developed line-shaped strange electrodes called *F-electrodes*.
During being activated, each F-electrode causes a special potential on and between the two lines touching the
F-electrodefs endpoints at a right angle. Then electrically-charged particles located inside the potential area get
to move in the direction parallel to the potential boundary (i.e. perpendicular to the F-electrode), either toward or
against F-electrode. The moving direction can be easily controlled between the two possibles; it is also possible
to get particles to pass through F-electrodes. In addition, unlike ordinary electrodes, F-electrodes can affect
particles even infinitely far away, as long as those particles are located inside the potential area. On the other
hand, two different F-electrodes cannot be activated at a time, since their potentials conflict strongly.

We can move particles on our will by controlling F-electrodes. However, in some cases, we cannot lead them to
the desired positions due to the potential areas being limited. To evaluate usefulness of F-electrodes from some
aspect, Frank has asked you the following task: to write a program that finds the shortest distances from the
particlesf initial positions to their destinations with the given sets of F-electrodes.

## Input

The input consists of multiple test cases. The first line of each case contains *N* (1 ≤ *N* ≤ 100) which represents
the number of F-electrodes. The second line contains four integers *x*_{s}, *y*_{s}, *x*_{t} and *y*_{t}, where (*x*_{s}, *y*_{s}) and (*x*_{t}, *y*_{t})
indicate the particlefs initial position and destination. Then the description of *N* F-electrodes follow. Each line
contains four integers *Fx*_{s}, *Fy*_{s}, *Fx*_{t} and *Fy*_{t}, where (*Fx*_{s}, *Fy*_{s}) and (*Fx*_{t}, *Fy*_{t} ) indicate the two endpoints of an
F-electrode. All coordinate values range from 0 to 100 inclusive.

The input is terminated by a case with *N* = 0.

## Output

Your program must output the case number followed by the shortest distance between the initial position to
the destination. Output gImpossibleh (without quotes) as the distance if it is impossible to lead the elementary
particle to the destination. Your answers must be printed with five digits after the decimal point. No absolute
error in your answers may exceed 10^{-5}.

## Sample Input

2
2 1 2 2
0 0 1 0
0 1 0 2
0

## Output for the Sample Input

Case 1: 3.00000