A,B,C=map(int, input().split())
if A==B and A!=C:print("Yes")
	
elif A==C and B!=C:print("Yes")

elif C==B and A!=C:print("Yes")

else:print("No") A,B,C=map(int, input().split()) A map(int, input().split()) map int input().split() ().split () input split B C if A==B and A!=C:print("Yes")
	
elif A==C and B!=C:print("Yes")

elif C==B and A!=C:print("Yes")

else:print("No") A==B and A!=C A==B A B A!=C A C elif A==C and B!=C:print("Yes") A==C and B!=C A==C A C B!=C B C elif C==B and A!=C:print("Yes") C==B and A!=C C==B C B A!=C A C B,C=map(int, input().split()) map(int, input().split()) B A,B,C=map(int, input().split()) map(int, input().split()) A C=map(int, input().split()) map(int, input().split()) C
A,B,C=map(int, input().split())
if A==B and A!=C:print("Yes")
	
elif A==C and B!=C:print("Yes")

elif C==B and A!=C:print("Yes")

else:print("No")