mountains = []
 
begin
  while line = $stdin.gets.chomp
    break if line == ""
    a = line.split(" ")
    b = $stdin.gets.chomp.split(" ")
    abs.push({:a => a, :b => b})
    mountains.push(line.to_f)
  end
rescue
end
 
puts mountains.max - mountains.min