import math
x1 = int(input())
y1 = int(input())
x2 = int(input())
y2 = int(input())
vid = math.sqrt(((x2-x1)**2) + ((y2-y1)**2))
print(vid)
import math
x1 = int(input())
y1 = int(input())
x2 = int(input())
y2 = int(input())
vid = math.sqrt(((x2-x1)**2) + ((y2-y1)**2))
print(vid)