#include <stdio.h>
int main(void)
{
  int x,y;
  int cane,turtle;
  scanf("%d", &x);
  scanf("%d", &y);

 cane = (4*x-y)/2;
 turtle = (y-2*x)/2;

 if(cane < 0 || turtle < 0){
 printf("no");
}else if(4*x-y % 2 == 1){
 printf("no");
}else if(y-2*x % 2 == 1){
  printf("no");
}else{
  printf("yes");
}

  return 0;
}
