l = list(map(int,input().split()))
#print(l)

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

if l[0]==l[1]!=l[2]:
    print('Yes')
elif l[0]!=l[1]==l[2]:
    print('Yes')
elif l[0]==l[2]!=l[1]:
    print('Yes')
else:
    print('No')