//X<=25, Y<=100
let X;
let Y;
//X=1のとき
 X = 1;
 if(Y === 2 || Y === 4){
     console.log('Yes');
 }else{
    console.log('No');
 }
 //X=2のとき
 X = 2;
 if(Y === 4 || Y === 6 || Y === 8){
     console.log('Yes');
 }else{
    console.log('No');
 }
//X=3のとき
X = 3;
if(Y === 6 || Y === 8 || Y === 10 || Y === 12){
    console.log('Yes');
}else{
   console.log('No');
}