A = input().split() print("Yes" if A[1] == A[3] else "No")