import sys
import math

inp = sys.stdin.readline()

tf, vf, hf, td, vd, hd = map(int, inp.split())

t_fall = math.sqrt(2 * hf)
s_fall = t_fall * vf

#print('fall at {}ms in {} mm'.format(t_fall, s_fall))

if vd <= vf:
	print(td + (s_fall / vd) * 2)
else:
	sf = (td - tf) * vf
	t = sf/(vd - vf)
	#print('the same horizontal position in {}ms, {}mm'.format(t, sf))
	if sf >= s_fall:
		#print('fall before dog reaches')
		print((s_fall / vd) * 2 + td)
	else:
		h = hf - 1/2*((t + td - tf) ** 2)
		if h <= hd:
			#print('norm high for dog')
			print(td + 2*t)
		else:
			t2 = math.sqrt((hf - hd) * 2)
			sf = t2 * vf
			#print('wait frisbee to be lower')
			print(tf + t2 + sf/vd)
exit(0)
