A, B, C = list(map(int, input().split()))
s = set([A, B, C])
if len(s) == 1 or len(s) == 3:
	print('No')
else:
	print('Yes') A, B, C = list(map(int, input().split())) A list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split B C s = set([A, B, C]) s set([A, B, C]) set [A, B, C] A B C if len(s) == 1 or len(s) == 3:
	print('No')
else:
	print('Yes') len(s) == 1 or len(s) == 3 len(s) == 1 len(s) len s 1 len(s) == 3 len(s) len s 3 print('No') print 'No' print('Yes') print 'Yes' B, C = list(map(int, input().split())) list(map(int, input().split())) B C = list(map(int, input().split())) list(map(int, input().split())) C s = set([A, B, C]) set([A, B, C]) s A, B, C = list(map(int, input().split())) list(map(int, input().split())) A
A, B, C = list(map(int, input().split()))
s = set([A, B, C])
if len(s) == 1 or len(s) == 3:
	print('No')
else:
	print('Yes')
