# frozen_string_literal: true A, B, C = gets.chomp.split.map(&:to_i) puts [A - B, B - C, C - A].map(&:abs).min