import java.util.*; public class Main3{ public static int f(int[][] arr,int n,int m,int x,int y,int z,int w) { int a=0,b=0,c=0,d=0; if(x==z&&y==w) { return 1; } if(x-1>=0&&arr[x-1][y]>arr[x][y]) { a=f(arr,n,m,x-1,y,z,w); } if(x+1<=n-1&&arr[x+1][y]>arr...