A = input().split()

a = A.count(A[0])
b = A.count(A[1])
c = A.count(A[2])

if a == 2 or b == 2 or c == 2:
    print("Yes")
else:
    print("No") A = input().split() A input().split() ().split () input split a = A.count(A[0]) a A.count(A[0]) A.count A count A[0] A 0 b = A.count(A[1]) b A.count(A[1]) A.count A count A[1] A 1 c = A.count(A[2]) c A.count(A[2]) A.count A count A[2] A 2 if a == 2 or b == 2 or c == 2:
    print("Yes")
else:
    print("No") a == 2 or b == 2 or c == 2 a == 2 or b == 2 a == 2 a 2 b == 2 b 2 c == 2 c 2 print("Yes") print "Yes" print("No") print "No" A = input().split() input().split() A c = A.count(A[2]) A.count(A[2]) c b = A.count(A[1]) A.count(A[1]) b a = A.count(A[0]) A.count(A[0]) a
A = input().split()

a = A.count(A[0])
b = A.count(A[1])
c = A.count(A[2])

if a == 2 or b == 2 or c == 2:
    print("Yes")
else:
    print("No")
