print('Yes' if len(set([i for i in input().split()])) == 2 else 'No') i for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() i print('Yes' if len(set([i for i in input().split()])) == 2 else 'No') print 'Yes' if len(set([i for i in input().split()])) == 2 else 'No' len(set([i for i in input().split()])) == 2 len(set([i for i in input().split()])) len set([i for i in input().split()]) set [i for i in input().split()] 2 'Yes' 'No'
print('Yes' if len(set([i for i in input().split()])) == 2 else 'No')