import java.util.*;
import java.lang.*;
import java.io.*;
class Hitchhiking
{
{
Scanner in
= new Scanner
(System.
in); int n = in.nextInt();
double place, time, delta, timee = 0.0, ss = 0.0, dist = 0.0;
double[] wait = new double[n], mov = new double[n], speed = new double[n];
double s = in.nextDouble();
double v0 = in.nextDouble();
for (int i = 0; i < n; i++)
wait[i] = in.nextDouble() / 60;
for (int i = 0; i < n; i++)
mov[i] = in.nextDouble();
for (int i = 0; i < n; i++)
speed[i] = in.nextDouble();
for (int i = 0; i < n; i++)
{
delta = v0 * wait[i] ;
timee += wait[i] ;
if (s <= delta)
{
time = s / v0;
place = s;
System.
out.
printf("Путники встретятся через " + time
+ " часов на расстоянии в " + place
+ " км от точки А"); break;
}
ss += v0 * mov[i] + v0 * wait[i] + mov[i] * speed[i];
if (ss >= s)
{
time = (s - dist - delta) / (v0 + speed[i]) + timee;
place = time * v0 ;
System.
out.
printf("Путники встретятся через " + time
+ " часов на расстоянии в " + place
+ " км от точки А"); break;
}
else
{
dist = ss;
}
timee += mov[i];
}
if (ss
< s
) System.
out.
printf("Путники не доехали до места встречи"); }
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBIaXRjaGhpa2luZwp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlTY2FubmVyIGluID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKCQlpbnQgbiA9IGluLm5leHRJbnQoKTsKCQlkb3VibGUgIHBsYWNlLCB0aW1lLCBkZWx0YSwgdGltZWUgPSAwLjAsIHNzID0gMC4wLCBkaXN0ID0gMC4wOwoJCWRvdWJsZVtdIHdhaXQgPSBuZXcgZG91YmxlW25dLCBtb3YgPSBuZXcgZG91YmxlW25dLCBzcGVlZCA9IG5ldyBkb3VibGVbbl07CgkJZG91YmxlIHMg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