#include <stdio.h>
#include <math.h>

int main(void)
{
	double a,b,c,x,y;
	scanf("%lf %lf %lf %lf %lf",&a,&b,&c,&x,&y);
	if ((a<=0)||(b<=0)||(c<=0)||(x<=0)||(y<=0))
		{
			printf("The task is not correct");
		}
	else
		{
		   if  (((a<x)&&(b<y))||((a<y)&&(b<x))||((a<x)&&(c<y))||((a<y)&&(c<x))||
		       ((b<x)&&(c<y))||((b<y)&&(c<x))) 
		       		{
		       			printf("Yes");
		       		}
		   else
		            {
		            	printf("No");
		            }
		}

	return 0;
}
