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