import collections
ABC = list(map(str, input().split()))
cnt = collections.Counter(ABC)
 
if cnt[ABC[0]] == 2 or cnt[ABC[1]] == 2 or cnt[ABC[2]] == 2:
    print('Yes')
else:
    print('No') import collections collections ABC = list(map(str, input().split())) ABC list(map(str, input().split())) list map(str, input().split()) map str input().split() ().split () input split cnt = collections.Counter(ABC) cnt collections.Counter(ABC) collections.Counter collections Counter ABC if cnt[ABC[0]] == 2 or cnt[ABC[1]] == 2 or cnt[ABC[2]] == 2:
    print('Yes')
else:
    print('No') cnt[ABC[0]] == 2 or cnt[ABC[1]] == 2 or cnt[ABC[2]] == 2 cnt[ABC[0]] == 2 or cnt[ABC[1]] == 2 cnt[ABC[0]] == 2 cnt[ABC[0]] cnt ABC[0] ABC 0 2 cnt[ABC[1]] == 2 cnt[ABC[1]] cnt ABC[1] ABC 1 2 cnt[ABC[2]] == 2 cnt[ABC[2]] cnt ABC[2] ABC 2 2 print('Yes') print 'Yes' print('No') print 'No' ABC = list(map(str, input().split())) list(map(str, input().split())) ABC cnt = collections.Counter(ABC) collections.Counter(ABC) cnt
import collections
ABC = list(map(str, input().split()))
cnt = collections.Counter(ABC)
 
if cnt[ABC[0]] == 2 or cnt[ABC[1]] == 2 or cnt[ABC[2]] == 2:
    print('Yes')
else:
    print('No')