from sys import stdin
print("Jutge starts")
for line in stdin:
    pts = list(map(float, line.split()))
    if pts:
        'cater for potential empty lines'
        print(*pts, end = ' ')
        print(f'{distance3d(*pts):.12f}')
print("Jutge finishes")