A, B, C = map(int, input().split())

print('Yes') if len({A, B, C}) == 2 else print('No') A, B, C = map(int, input().split()) A map(int, input().split()) map int input().split() ().split () input split B C print('Yes') if len({A, B, C}) == 2 else print('No') len({A, B, C}) == 2 len({A, B, C}) len {A, B, C} 2 print('Yes') print 'Yes' print('No') print 'No' B, C = map(int, input().split()) map(int, input().split()) B C = map(int, input().split()) map(int, input().split()) C A, B, C = map(int, input().split()) map(int, input().split()) A
A, B, C = map(int, input().split())

print('Yes') if len({A, B, C}) == 2 else print('No')