import collections

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

c = collections.Counter(li)

if len(c) == 2:
    print('Yes')
else:
    print('No') import collections collections li = list(map(int,input().split())) li list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split c = collections.Counter(li) c collections.Counter(li) collections.Counter collections Counter li if len(c) == 2:
    print('Yes')
else:
    print('No') len(c) == 2 len(c) len c 2 print('Yes') print 'Yes' print('No') print 'No' li = list(map(int,input().split())) list(map(int,input().split())) li c = collections.Counter(li) collections.Counter(li) c
import collections

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

c = collections.Counter(li)

if len(c) == 2:
    print('Yes')
else:
    print('No')
