A,B,C,D=map(int,input().split()) if AD: print("Yes") else: print("No")