#include <stdio.h>
 
int main(void) {
 
 	int X, Y;
 	int wa;
 	int num;
    int i;

 	if(scanf("%d", &X) == 0);
 	if(scanf("%d", &Y) == 0);

 	for(i = 0; i <= X; i++) {
 		num = i*2 + (X - i)*4;
	 	if(Y == num){
	 		wa++;
	 	}
 	}

 	if(wa > 0){
 		printf("YES");
 	}else{
 		printf("NO");
 	}
	
	return 0;
}
