#include <stdio.h>

int main(void) {
    int x, y, kame, tsuru;
    scanf ("%d %d", &x, &y);
    kame = x;
    tsuru = 0;
    while (1) {
        if (kame * 4 + tsuru * 2 == y) {
            printf ("YES\n");
            return 0;
        }
        if (kame == 0) break;
        kame--;
        tsuru++;
    }
    printf ("NO\n");
    return 0;
}