import sys input = sys.stdin.readline A=list(map(int,input().split())) if A[1]==A[3]: print("Yes") else: print("No")