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