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