k, l, r = gets.split.map &:to_i
$p, $e, $t = $<.map &:to_f

def f(k, l, r)
	h = (l + r) / 2
	if k == 0
		return (h - $t).abs <= $e ? 1 : 0
	end

	return 1 if $t - $e <= l && r <= $t + $e
	return 0 if r < $t - $e || $t + $e < l

	if h < $t
		(1-$p) * f(k-1, h, r) + $p * f(k-1, l, h)
	else
		(1-$p) * f(k-1, l, h) + $p * f(k-1, h, r)
	end
end

puts "%.6f" % f(k, l.to_f, r.to_f)