#encoding: utf-8                                                                       

require 'complex'

x1, y1, x2, y2 = gets.chomp.split(/\s/).collect { |x| x.to_f }

p1 = Complex(x1, y1)
p2 = Complex(x2, y2)

puts ("%6f" % (p2 - p1).abs)