a,b,c,d = map(int,input().split()) max(abs(a-c),abs(b-d)) print(max)
------Input------ 37 85 25 78 ------Answer----- 12 ------Your output-----