a, b,c = map(int, input().split())
s=False
if a==b and b!=c:
    
    s=True
if a==c and b!=c:
    s=True
if c==b and a!=c:
    s=True
if s:
    print('Yes')
else:
    print('No') a, b,c = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b c s=False s False if a==b and b!=c:
    
    s=True a==b and b!=c a==b a b b!=c b c s=True s True if a==c and b!=c:
    s=True a==c and b!=c a==c a c b!=c b c s=True s True if c==b and a!=c:
    s=True c==b and a!=c c==b c b a!=c a c s=True s True if s:
    print('Yes')
else:
    print('No') s print('Yes') print 'Yes' print('No') print 'No' b,c = map(int, input().split()) map(int, input().split()) b a, b,c = map(int, input().split()) map(int, input().split()) a c = map(int, input().split()) map(int, input().split()) c s=True True s s=True True s s=False False s s=True True s
a, b,c = map(int, input().split())
s=False
if a==b and b!=c:
    
    s=True
if a==c and b!=c:
    s=True
if c==b and a!=c:
    s=True
if s:
    print('Yes')
else:
    print('No')