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