a, b, c = list(map(int, input().split()))

if len(set([a, b, c])) == 2:

    print("Yes")

else:

    print("No")

s = list(map(int,input().split()))

if len(set(s)) == 2:

  print("Yes")

else:

  print("No")
a, b, c = list(map(int, input().split()))
if len(set([a, b, c])) == 2:
    print("Yes")
else:
    print("No")

s = list(map(int, input().split()))
if len(set(s)) == 2:
    print("Yes")
else:
    print("No")

-a, b, c = list(map(int, input().split())) -if len(set([a, b, c])) == 2: +s = list(map(int, input().split())) +if len(set(s)) == 2: