import math x,y=input().split(),input().split() x,y=[int(i) for i in x],[int(i) for i in y] t,t1=abs(x[0]-y[0]),abs(x[1]-y[1]) print("%.2f" %math.sqrt(t*t+t1*t1))