from  math import *
xa = float(input("digite xa"))
xb = float(input("digite xb"))
ya = float(input("digite ya"))
yb = float(input("digite yb"))
dab = sqrt(((xa-ya)**2)+((xb-yb)**2))
print(round(dab, 3))