object Main extends App {
  val sc = new java.util.Scanner(System.in)
  var line: Double = sc.nextDouble
  var list: List[Double] = List()
  while(line != null) {
    list = line :: list
    line = sc.nextDouble
  }
  println(list.max - list.min)
}