AX, AY = gets.split.map(&:to_f) BX, BY = gets.split.map(&:to_f) puts Math.sqrt((AX - BX) ** 2 + (AY - BY) ** 2) / 2