# Poor
num = set(map(int, input().split()))
ans = ['Yes', 'No'][len(num) != 2]
print(ans) num = set(map(int, input().split())) num set(map(int, input().split())) set map(int, input().split()) map int input().split() ().split () input split ans = ['Yes', 'No'][len(num) != 2] ans ['Yes', 'No'][len(num) != 2] ['Yes', 'No'] 'Yes' 'No' len(num) != 2 len(num) len num 2 print(ans) print ans ans = ['Yes', 'No'][len(num) != 2] ['Yes', 'No'][len(num) != 2] ans num = set(map(int, input().split())) set(map(int, input().split())) num
# Poor
num = set(map(int, input().split()))
ans = ['Yes', 'No'][len(num) != 2]
print(ans)