t = list(map(int, input().split()))
a = t[0]
b = t[1]
c = t[2]

if a != b and b != c and a != c:
    print("No")
elif a == b == c:
    print("No")
else:
    print("Yes") t = list(map(int, input().split())) t list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split a = t[0] a t[0] t 0 b = t[1] b t[1] t 1 c = t[2] c t[2] t 2 if a != b and b != c and a != c:
    print("No")
elif a == b == c:
    print("No")
else:
    print("Yes") a != b and b != c and a != c a != b and b != c a != b a b b != c b c a != c a c print("No") print "No" elif a == b == c:
    print("No") a == b == c a == b a b c print("No") print "No" print("Yes") print "Yes" a = t[0] t[0] a t = list(map(int, input().split())) list(map(int, input().split())) t b = t[1] t[1] b c = t[2] t[2] c
t = list(map(int, input().split()))
a = t[0]
b = t[1]
c = t[2]

if a != b and b != c and a != c:
    print("No")
elif a == b == c:
    print("No")
else:
    print("Yes")
