#include<stdio.h>

int main(void){
       int x,y;
       scanf("%d %d",&x,&y);

       if((3*x-y)%2==0 && (2*x-y)%2==0 && (3*x-y)>=0 && (2*x-y)<=0){
              printf("Yes");
       }
       else{
              printf("No");
       }
       return 0;
}