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