import java.util.Scanner;
public class Main{
static int a=0;
boolean Jud(int a,int b,int c,int d)
{
boolean retr=null;
int Jude=a-c;
if (Jude==1)||(Jude==-1)
switch(b-d){
case 2: retr=true;break;
case -2:retr=true;break;
default:retr=false;
}
else if (Jude==2)||(Jude==-2)
switch(b-d){
case 1: retr=true;break;
case -1:retr=true;break;
default:retr=false;
}else if retr=false;
}
int Jis(int a,int b,int c,int d){
for(int i=a;i<c;i++)
{
for(int j=b;j<d;j++){
if(Jud(a,b,c,d))
a=a+1;
}
}
}
public static void main(String args[]){
System.out.println("请输入:");
Scanner s=new Scanner(System.in);
int a=s.nextInt();
int b=s.nextInt();
System.out.println("您输入的a和b分别是:a="+a+";b="+b);
int c=s.nextInt();
int d=s.nextInt();
System.out.println("您输入的a和b分别是:c="+c+";d="+d);
int e=s.nextInt();
int f=s.nextInt();
System.out.println("您输入的陷阱点是:e="+e+";f="+f);
Main m=new Main();
System(m.Jis(a,b,c,d,e,f));
}
}