import scala.collection.mutable.ListBuffer
import scala.math.{BigDecimal => Dec}
object Main extends App{
    implicit def str2BigDecimal(str:String):Dec = {
        new 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 - ans.min)
}