A,B,C = (int(x) for x in input().split())
List = [A,B,C]
if len(set(List))==2:
    print('Yes')
else:
    print('No') int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x A,B,C = (int(x) for x in input().split()) A (int(x) for x in input().split()) B C List = [A,B,C] List [A,B,C] A B C if len(set(List))==2:
    print('Yes')
else:
    print('No') len(set(List))==2 len(set(List)) len set(List) set List 2 print('Yes') print 'Yes' print('No') print 'No' B,C = (int(x) for x in input().split()) (int(x) for x in input().split()) B List = [A,B,C] [A,B,C] List C = (int(x) for x in input().split()) (int(x) for x in input().split()) C A,B,C = (int(x) for x in input().split()) (int(x) for x in input().split()) A
A,B,C = (int(x) for x in input().split())
List = [A,B,C]
if len(set(List))==2:
    print('Yes')
else:
    print('No')