import collections
l = list(map(int, input().split()))
c = collections.Counter(l)
values, counts = zip(*c.most_common())
if counts[0] == 2:
    print('Yes')
else:
    print('No') import collections collections l = list(map(int, input().split())) l list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split c = collections.Counter(l) c collections.Counter(l) collections.Counter collections Counter l values, counts = zip(*c.most_common()) values zip(*c.most_common()) zip *c.most_common() c.most_common() c.most_common c most_common counts if counts[0] == 2:
    print('Yes')
else:
    print('No') counts[0] == 2 counts[0] counts 0 2 print('Yes') print 'Yes' print('No') print 'No' l = list(map(int, input().split())) list(map(int, input().split())) l counts = zip(*c.most_common()) zip(*c.most_common()) counts values, counts = zip(*c.most_common()) zip(*c.most_common()) values c = collections.Counter(l) collections.Counter(l) c
import collections
l = list(map(int, input().split()))
c = collections.Counter(l)
values, counts = zip(*c.most_common())
if counts[0] == 2:
    print('Yes')
else:
    print('No')