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