import scala.collection.mutable.ListBuffer
object Main extends App{
    implicit def str2BigDecimal(str:String):Dec = {
        new java.math.BigDecimal(str)
    }
    val ans = new ListBuffer[Dec]();
    var line = readLine();
    while(line != null) {
        ans.append(line)
        line=readLine();
    }
    println(ans.max.substract(ans.min))
}