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

if a == c and a != b:

    print('Yes')

elif a == b and a != c:

    print('Yes')

elif b == c and a != b:

    print('Yes')

else:

    print('No')

if len(set(input().split()))==2:

  print('Yes')

else:

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

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

-a, b, c = list(map(int, input().split())) -if a == c and a != b: -    print("Yes") -elif a == b and a != c: -    print("Yes") -elif b == c and a != b: +if len(set(input().split())) == 2: