s=list(map(int,input().split()))
ans="Yes" if len(set(s))==2 else "No"
print(ans) s=list(map(int,input().split())) s list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split ans="Yes" if len(set(s))==2 else "No" ans "Yes" if len(set(s))==2 else "No" len(set(s))==2 len(set(s)) len set(s) set s 2 "Yes" "No" print(ans) print ans s=list(map(int,input().split())) list(map(int,input().split())) s ans="Yes" if len(set(s))==2 else "No" "Yes" if len(set(s))==2 else "No" ans
s=list(map(int,input().split()))
ans="Yes" if len(set(s))==2 else "No"
print(ans)