A, B, C = [int(x) for x in input().split()]

if len({A, B, C}) == 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 if len({A, B, C}) == 2:
    print('Yes')
else:
    print('No') len({A, B, C}) == 2 len({A, B, C}) len {A, B, C} 2 print('Yes') print 'Yes' print('No') print 'No' A, B, C = [int(x) for x in input().split()] [int(x) for x in input().split()] A B, C = [int(x) for x in input().split()] [int(x) for x in input().split()] B 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()]

if len({A, B, C}) == 2:
    print('Yes')
else:
    print('No')
