def extract_arguments(fh):
    datasets = []
    while True:
        D = float(fh.readline().strip())
        if D == 0:
            break
        px, py, vx, vy = map(float, fh.readline().strip().split())
        datasets.append((D, (px, py, vx, vy)))
    return datasets