x;main(y){x=scanf("%d%d",&x,&y)>puts(1&44714836291519L>>x*7+y?"YES":"NO",x=abs(x),y=abs(y));}