(define (main args) (let* ([a (read)] [b (read)] [c (read)]) (print (min (abs (- a b)) (abs (- b c)) (abs (- c a))))) 0)