a, b, c = sorted(map(int, input().split()))
if a == b != c:
    print("Yes")
elif a != b == c:
    print("Yes")
else:
    print("No") a, b, c = sorted(map(int, input().split())) a sorted(map(int, input().split())) sorted map(int, input().split()) map int input().split() ().split () input split b c if a == b != c:
    print("Yes")
elif a != b == c:
    print("Yes")
else:
    print("No") a == b != c a == b a b c print("Yes") print "Yes" elif a != b == c:
    print("Yes") a != b == c a != b a b c print("Yes") print "Yes" print("No") print "No" a, b, c = sorted(map(int, input().split())) sorted(map(int, input().split())) a b, c = sorted(map(int, input().split())) sorted(map(int, input().split())) b c = sorted(map(int, input().split())) sorted(map(int, input().split())) c
a, b, c = sorted(map(int, input().split()))
if a == b != c:
    print("Yes")
elif a != b == c:
    print("Yes")
else:
    print("No")