A, B, C = map(int, input().split())
print('Yes' if (A == B and A != C) or (A == C and A != B) or (B == C and A != B) else '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 (A == B and A != C) or (A == C and A != B) or (B == C and A != B) else 'No') print 'Yes' if (A == B and A != C) or (A == C and A != B) or (B == C and A != B) else 'No' (A == B and A != C) or (A == C and A != B) or (B == C and A != B) (A == B and A != C) or (A == C and A != B) A == B and A != C A == B A B A != C A C A == C and A != B A == C A C A != B A B B == C and A != B B == C B C A != B A B 'Yes' 'No' A, B, C = map(int, input().split()) map(int, input().split()) A 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())
print('Yes' if (A == B and A != C) or (A == C and A != B) or (B == C and A != B) else 'No')
