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