A1,A2,A3,A4=map(int,input().split()) if A1A4: print("Yes") else: print("No")