ksx, ksy, osx, osy, kex, key, oex, oey = map(int, input().split()) d1 = ((ksx - osx) ** 2 + (ksy - osy) ** 2) ** (0.5) d2 = ((kex - oex) ** 2 + (key - oey) ** 2) ** (0.5) print(max((d1, d2)))