import math a,b=map(int,input().split()) c,d=map(int,input().split()) print(math.sqrt(pow(abs(a-c),2)+pow(abs(b-d,2))))