ary = input().split(" ")

a = ary[0]

b = ary[1]

c = ary[2]



if ( a == b and ( a != c or b != c) ) or ( a == c and ( a != b or c != b ) ) or ( b == c and ( b != a or c != a ) ) :

  print("Yes") 

else :

  print("No")
ary = input().split(" ")

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

	print("Yes")

else : 

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

ary = input().split(" ")
if len(set(ary)) == 2:
    print("Yes")
else:
    print("No")

-a = ary[0] -b = ary[1] -c = ary[2] -if ( -    (a == b and (a != c or b != c)) -    or (a == c and (a != b or c != b)) -    or (b == c and (b != a or c != a)) -): +if len(set(ary)) == 2: