a,b,c,d = map(int,input().split()) if(ad): print('YES') else: print('NO')