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