Vasya participate ski race X axi the start point 0 finish L distance L meter start positive direction axis Vasya training hard run meter exactly secondbeside n takeoff ramp track ramp characterize number xi represent ramp coordinate di represent meter Vasya land go ramp ti represent flight time second pi number indicate meter Vasya gather speed ready fly ramp as Vasya gathers speed ski snow fly speed equal meter second Vasya allow direction X axis prohibit cross start line negative semiaxis Vasya choose takeoff ramp use order oblige ramp encounter specifically Vasya skip ramp it guarantee xidiL Vasya cross finish line flightVasya jump ramp positive direction x axi more formally ith ramp Vasya start gather speed point xipi jump point xi land point xidi he use ramp opposite directionyour task find minimum time Vasya spend cover distance