f=lambda:map(int,input().split()) a,b,c,d=f() print('YNEOS'[a>=b or c<=d::2])