#include <stdio.h>

int main ( void ) {
  
  int foot, head, judge = 0;
  
  scanf("%d", &head);
  scanf("%d", &foot);
  
  for(int i = 0; i <= head; i++){
    if(i * 4 + ( head - i ) * 2 == foot) {
      printf("YES\n");
      judge++;
    }
  }
  
  if(judge == 0){
    printf("NO\n");
  }  
  
  return 0;
}