def solve(): a, p, q = input().split() return p != q ans = "Yes" if solve() else "No" print(ans)