a=input().split()
a=[int(a[i]) for i in (0,1,2)]
a=list(dict.fromkeys(a))
if len(a)==2:
    print('Yes')
else:
    print('No') a=input().split() a input().split() ().split () input split int(a[i]) for i in (0,1,2) for i in (0,1,2) i (0,1,2) 0 1 2 for i in (0,1,2) int(a[i]) int a[i] a i a=[int(a[i]) for i in (0,1,2)] a [int(a[i]) for i in (0,1,2)] a=list(dict.fromkeys(a)) a list(dict.fromkeys(a)) list dict.fromkeys(a) dict.fromkeys dict fromkeys a if len(a)==2:
    print('Yes')
else:
    print('No') len(a)==2 len(a) len a 2 print('Yes') print 'Yes' print('No') print 'No' a=input().split() input().split() a a=list(dict.fromkeys(a)) list(dict.fromkeys(a)) a a=[int(a[i]) for i in (0,1,2)] [int(a[i]) for i in (0,1,2)] a
a=input().split()
a=[int(a[i]) for i in (0,1,2)]
a=list(dict.fromkeys(a))
if len(a)==2:
    print('Yes')
else:
    print('No')