x = gets.to_i
y = gets.to_i
ox = gets.to_i
oy = gets.to_i
result = Math.sqrt((x - ox) ** 2 + (y - oy) ** 2) #←コレが>>429の部分
puts(result)
eCA9IGdldHMudG9faQp5ID0gZ2V0cy50b19pCm94ID0gZ2V0cy50b19pCm95ID0gZ2V0cy50b19pCgpyZXN1bHQgPSBNYXRoLnNxcnQoKHggLSBveCkgKiogMiArICh5IC0gb3kpICoqIDIpICPihpDjgrPjg6zjgYw+PjQyOeOBrumDqOWIhgoKcHV0cyhyZXN1bHQp