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