A,B,C,D=map(int,input().split()) if AD: print('YES') else: print('NO')