Kill Tom Riddle !!

0

0 votes
Very-Easy
Problem

Do you remember Harry, Ron and Hermione had to play the wizard chess to get to Voldemort, sorry, "You know who", in Harry Potter and the Sorcerer's Stone? Well, Harry needs to knock Ron's king out to get to "You know who" by using only his knight. As the time is running out, he needs to find out the minimum number of steps in which he can knock Ron's king out by using his knight, assuming Ron's king stays in the same position throughout the game.

Input

The only line contains four numbers x1,y1,x2,y2. x1,y1 are the coordinates of Harry's knight. x2,y2 are the coordinates of Ron's king.

Output

Print the minimum number of moves in one line.

Constraints

1 <= x1,y1,x2,y2 <=8

Sample Input
2 1 6 5
Sample Output
4
Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?