#include int main(){ int A1,A2,A3,A4; scanf("%d%d%d%d",&A1,&A2,&A3,&A4); if(A1 < A2 && A3 > A4){ printf("YES"); }else{ printf("NO"); } }