object Main extends App{ val s=new java.util.Scanner(System.in) val a,b,c = s.nextInt println(Seq(math.abs(a-b),math.abs(b-c),math.abs(c-a)).min) }