a,b,c=gets.split(" ").map{|e| e.to_i} puts [(a-b).abs,(b-c).abs,(a-c).abs].min