if __FILE__ == $0
  minHeight = Float::MAX
  maxHeight = Float::MIN
  while line = gets
    height = line.to_f
    if minHeight > height
      minHeight = height
    end

    if maxHeight < height
      maxHeight = height
    end
  end
  puts (maxHeight - minHeight)
end