import math # 不知道这4个数字是怎么输入的,先这样了 x1 = input() y1 = input() x2 = input() y2 = input() d = math.sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2) print(d)