import scala.io.StdIn._
object Main{
  def main(args: Array[String]): Unit = {
     val in = readLine
     val l = in.split("\\s+").toList.map(_.toInt)
     if(l.filter(i => i<1&&i>100).isEmpty){
       val out = l.max - l.min
       println(out.toString)
     }
  }
}
