a,b,c,d = map(int,input().split())
e = 0
if a <= c:
    e += (c-a)
else:
    e += (a-c)
if b <= d:
    e += (d-b)
else:
    e += (b-d)
print(e)
41e1ae57f31a5466d2a91ad338e7c1fc227f4e7d
<mask token>

<mask token>
if a <= c:
    e += c - a
else:
    e += a - c
if b <= d:
    e += d - b
else:
    e += b - d
print(e)

a, b, c, d = map(int, input().split())
e = 0
if a <= c:
    e += c - a
else:
    e += a - c
if b <= d:
    e += d - b
else:
    e += b - d
print(e)

a,b,c,d = map(int,input().split())
e = 0
if a <= c:
    e += (c-a)
else:
    e += (a-c)
if b <= d:
    e += (d-b)
else:
    e += (b-d)
print(e)