first = true
while line = $stdin.gets
	height = line.chomp.to_f
	if first 
		min = height
		max = height
		first = false
	else
		min = height if height < min
		max = height if height > max
	end
end
puts max - min
