a,b,c = map(int,input().split())
poor = False
if a == b and a != c:
    poor = True
elif c == b and c != a:
    poor = True
elif a == c and a != b:
    poor = True
if poor:
    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 poor = False poor False if a == b and a != c:
    poor = True
elif c == b and c != a:
    poor = True
elif a == c and a != b:
    poor = True a == b and a != c a == b a b a != c a c poor = True poor True elif c == b and c != a:
    poor = True c == b and c != a c == b c b c != a c a poor = True poor True elif a == c and a != b:
    poor = True a == c and a != b a == c a c a != b a b poor = True poor True if poor:
    print('Yes')
else:
    print('No') poor print('Yes') print 'Yes' print('No') print 'No' poor = True True poor poor = True True poor b,c = map(int,input().split()) map(int,input().split()) b c = map(int,input().split()) map(int,input().split()) c poor = False False poor poor = True True poor a,b,c = map(int,input().split()) map(int,input().split()) a
a,b,c = map(int,input().split())
poor = False
if a == b and a != c:
    poor = True
elif c == b and c != a:
    poor = True
elif a == c and a != b:
    poor = True
if poor:
    print('Yes')
else:
    print('No')
