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

l.sort()

if l[0]==l[1]==l[2] or l[0]!=l[1]!=l[2]:
    print("No")
else:
    print("Yes") l=list(map(int,input().split())) l list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split l.sort() l.sort l sort if l[0]==l[1]==l[2] or l[0]!=l[1]!=l[2]:
    print("No")
else:
    print("Yes") l[0]==l[1]==l[2] or l[0]!=l[1]!=l[2] l[0]==l[1]==l[2] l[0]==l[1] l[0] l 0 l[1] l 1 l[2] l 2 l[0]!=l[1]!=l[2] l[0]!=l[1] l[0] l 0 l[1] l 1 l[2] l 2 print("No") print "No" print("Yes") print "Yes" l=list(map(int,input().split())) list(map(int,input().split())) l
l=list(map(int,input().split()))

l.sort()

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