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