ax = float(raw_input()) ay = float(raw_input()) bx = float(raw_input()) by = float(raw_input()) time = 0 time += abs(ax - bx) / 2 time += abs(ay - by) / 2 print time