import collections

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

if len(collections.Counter(A)) == 2:

  print('Yes')

else: print('No')
A = list(map(int, input().split()))

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

  print('Yes')

else: print('No')
import collections

A = list(map(int, input().split()))
if len(collections.Counter(A)) == 2:
    print("Yes")
else:
    print("No")

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

-import collections - -if len(collections.Counter(A)) == 2: +if len(set(A)) == 2: