A = list(map(int,input().split(" "))) B = list(map(int,input().split(" "))) C = [A[0] - B[0], A[1] - B[1]] result = abs(C[0] + C[1]) print(result)