x = list(map(float,input().split(","))) y = list(map(float,input().split(","))) d = ((x[0] - y[0])**2 + (x[1] - y[1])**2)**(1/2) print("%.2f"%d)