function lx(x,y){
let value=1;
let max=Math.max(Math.abs(x),Math.abs(y));
let a=Math.abs(x)-Math.abs(y);
let b=x-y;
let t=(Math.pow(2,max)+1)*(Math.pow(2,max)+1);
if(x===0 && y===0){
return value;
}
if(x>0&& y<0&&a===0){
value=t;
}
if(a===0 && x<0 && y<0){
value=t-Math.pow(2,max);
}
if(a===0 && x>0 && y>0){
value=t-6*max;
}
if(a===0 && x<0 && y>0){
value=t-Math.pow(2,max)-2*max;
}
if(a<0 && x>y){
value=t+x+y;
}
if(a<0 && y>x){
value=t-6*max+(-x)+y;
}
if(a>0 && y>x){
value=t-Math.pow(2,max)-2*max+(-x)-y;
}
if(a>0 && x>y){
value=t-6*max-(x-y);
}
return value;
}
let c=this.lx(5,0);
console.log(c);
console