akun = list(map(int, input().split(" "))) bkun = list(map(int, input().split(" "))) X = akun[0] - bkun[0] Y = akun[1] - bkun[1] print(abs(X + Y)/2)