5870: K6-1-1 曼哈顿距离

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:1 Solved:0

Description

平面直角坐标系中位于坐标(x1,y1)的 i 点与位于坐标(x2,y2)的 j 点的曼哈顿距离为 d(i,j) = |x1-x2| + |y1-y2|。请编程输入两个点的坐标,输出它们之间的曼哈顿距离。

Input

一行四个整数(100 以内),分别表示两个点的坐标(x1,y1)和(x2,y2)。

Output

一行一个整数,表示两个点之间的曼哈顿距离。

Sample Input Copy

10 5 6 20

Sample Output Copy

19