Now that BMP and MSA have arrived on the 8th floor, they find themselves in a famous five star restaurant where famous chef Mr. Benum keeps all of his fancy recipes. Legend has it that somewhere in the depths of the restaurant, Mr. Benum holds a list of key ingredients to the fabled cheesecake recipe. Of course, BMP and MSA want to get their hands on that blessed list, but it's not that simple.
The restaurant is a grid and its layout is quite tricky, BMP has decided that he will be the one looking for the list. However, he needs your help! BMP, wanting a challenge and having very limited time
The restaurant size will always be
Note that
Input Specification
The first line contains a single integer
Second line consists of two integers
And the third line consists of two integers
Output Specification
The minimum amount of steps it takes to get from Cannot physically get there.
. If BMP cannot get to there within the time limit, output Cannot get there on time.
.
Sample Input
1
1 1
2 2
Sample Output
It takes 1 minute(s) to get to (2, 2).
Explanation for Sample Output
BMP starts his journey at coordinate
Comments