#include<stdio.h>

int main(void){
  int x[]={0,0};
  int i,j;
  
  scanf("%d",&x[0]);
  scanf("%d",&x[1]);
  
  //y[0]=x[1]/4;
  //z[0]=x[1]/2;
  
  if(((x[1]/4)%2 == 0) ||((x[1]/2)%4 == 0)){
    //z[1]=(x[1]%2)/4;
    printf("YES");
  }
  else{
    printf("NO");
  }
  
 return 0;
  
}