import scala.io.Source.stdin

object Main {
  def differential(lowest: Double, highest: Double): Double = highest - lowest

  def main(args: Array[String]): Unit = {
    val input = stdin.getLines.toVector.map(_.toDouble).sorted
    println(differential(input.head, input.last))
  }
}