#include <stdio.h>
int main()
{
    int x,y,i;
    int f=0;
    scanf("%d",&x); scanf("%d",&y);
    while(1){
        if(4<=y){
            y=y-4;
            f++;
        }
        if(2<=y){
            y=y-2;
            f++;
        }
        if(0<=y) break;
    }
    if(x==f) printf("Yes");
    if(x!=f) printf("No");
    }