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