#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

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