a,p,q = map(str,input().split()) print("Yes" if p!=q else "No")