ls = sorted(list(map(int,input().split())))
bool = 0 
if ls[0] == ls[1] and ls[1] != ls[2]:
    bool = 1 
elif ls[1] == ls[2] and ls[0] != ls[1]:
    bool = 1
elif ls[0] == ls[2] and ls[0] != ls[1]:
    bool = 1
if bool:
    print('Yes')
else:
    print('No') ls = sorted(list(map(int,input().split()))) ls sorted(list(map(int,input().split()))) sorted list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split bool = 0 bool 0 if ls[0] == ls[1] and ls[1] != ls[2]:
    bool = 1 
elif ls[1] == ls[2] and ls[0] != ls[1]:
    bool = 1
elif ls[0] == ls[2] and ls[0] != ls[1]:
    bool = 1 ls[0] == ls[1] and ls[1] != ls[2] ls[0] == ls[1] ls[0] ls 0 ls[1] ls 1 ls[1] != ls[2] ls[1] ls 1 ls[2] ls 2 bool = 1 bool 1 elif ls[1] == ls[2] and ls[0] != ls[1]:
    bool = 1 ls[1] == ls[2] and ls[0] != ls[1] ls[1] == ls[2] ls[1] ls 1 ls[2] ls 2 ls[0] != ls[1] ls[0] ls 0 ls[1] ls 1 bool = 1 bool 1 elif ls[0] == ls[2] and ls[0] != ls[1]:
    bool = 1 ls[0] == ls[2] and ls[0] != ls[1] ls[0] == ls[2] ls[0] ls 0 ls[2] ls 2 ls[0] != ls[1] ls[0] ls 0 ls[1] ls 1 bool = 1 bool 1 if bool:
    print('Yes')
else:
    print('No') bool print('Yes') print 'Yes' print('No') print 'No' bool = 0 0 bool bool = 1 1 bool bool = 1 1 bool bool = 1 1 bool ls = sorted(list(map(int,input().split()))) sorted(list(map(int,input().split()))) ls
ls = sorted(list(map(int,input().split())))
bool = 0 
if ls[0] == ls[1] and ls[1] != ls[2]:
    bool = 1 
elif ls[1] == ls[2] and ls[0] != ls[1]:
    bool = 1
elif ls[0] == ls[2] and ls[0] != ls[1]:
    bool = 1
if bool:
    print('Yes')
else:
    print('No')