xa,ya=map(int,input().split()) xb,yb=map(int,input().split()) s=((xb-xa)**2+(yb-ya)**2)**0.5 print(round(s,3))