x = list(map(int, input().split())) if x[1] == x[3]: print("Yes") else: print("No")