import sys
input = sys.stdin.readline
a, p, q = input().split()
if p==q:
    print("No")
else:
    print("Yes")