import math A = input().split() B = input().split() dx = eval(A[0]) - eval(B[0]) dy = eval(A[1]) - eval(B[1]) print(f'{math.sqrt(dx*dx + dy*dy):.4f}')