#include <stdio.h>

int main(){
  int i,leg;
  int x,y;
  int n = scanf("%d %d",&x ,&y);
  if (1 <= x <= 100 || 1 <= y <= 100){
    for(i=0;i<=x;i++){
      leg = ( 4 * i ) + 2 * (x - i);
      if(leg == y) break; 
     }
    if(i != x+1) printf("YES");
    if(i == x+1) printf("NO");
  
  }else{
  	printf("error");
  } 
  
return 0;
}