#include<stdio.h>
int main()
{
    int X,Y;
    scanf("%d %d",&X,&Y);
    if(Y%2)
        printf("NO\n");
    if(Y>=2*X&&Y<=4*X)
        printf("YES\n");
    else
        printf("NO\n");
    return 0;
}
