An Imperial cruiser and its squadron of TIE fighters are hot on the tail of the Millennium Falcon. The Falcon has taken minor damage to its aft and port thrusters, but worse, the Navi-Computer is down — without it the ship cannot jump to hyperspace and escape.
$d = \sqrt{(\Delta x)^2 + (\Delta y)^2 + (\Delta z)^2} = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2}$
Help Leia compute the distance between two star systems, accurate to two digits after the decimal point, and save the Millennium Falcon and its crew!
The first line contains an integer $n$ ($0 < n < 200$), the number of entries to process. Each of the $n$ entries is given on four lines:
A star system name may contain alphanumeric characters, whitespace, and punctuation, and is at most 30 characters long. The coordinates are real numbers given with two digits after the decimal point, with $-100000.00 < x, y, z < 100000.00$; use double-precision reals to avoid rounding errors. The distance between the two systems is always at least one galactic unit.
For each entry, output one line containing: the name of the current star system, a space, the word to, a space, the name of the destination star system, a colon, a space, and finally the distance between the two systems printed with two digits after the decimal point.