peterverebics/CodeNet_Python_118 huggingface dataset:
A, B, C = map(int, input().split())

if A == B:
    if B == C:
        print('No')
    else:
        print('Yes')
elif A == C:
    print('Yes')
else:
    print('No')
a,b,c = map(int, input().split())
 
if a==b or b==c or a==c:
  print("Yes")
else:
  print("No")
a, b, c = map(int,input().split())

if a == b and (a == b) != c:
  print("Yes")
elif a == c and (a == c) != b:
  print("Yes")
elif b == c and (b == c) != a:
  print("Yes")
else:
  print("No")
A,B,C=map(int, input().split()) #1 2 3

if (A == B and A != C) or (A != B and A == C):
  print("YES")
else:
  print("NO")
a,b,c=map(int,input().split())
d=a-b
e=a-c
f=b-c
if d*e*f==0 and (d+e+f!=0):
    print("Yes")
else:
    print("No")
a, b, c = map(int, input().split())
if a==b==c or (a!=b and b!=c and c !=a):
  print('No')
else:
  print('No')
n = list(map(int,input().split()))

if n[0] == n[1] == n[2]:
  print('No')
else:
  print('Yes')
A = list(map(int , input().split()))
if A[0] == A[1] and A[0] != A[2]:
    print('Yes')
elif A[0] == A[2] and A[0] != A[1]:
    print('Yes')
else:
    print('No')
A,B,C = input().split()
A = int(A)
B = int(B)
C = int(C)
if A == B :
    print('Yes')
elif B == C :
    print('Yes')
elif C == A :
    print('Yes')
else :
    print('No')
num = [x for x in input()]
ans = 0
if num[0] == num[1]:
  ans = ans + 1
if num[0] == num[2]:
  ans = ans + 1
if num[1] == num[2]:
  ans = ans + 1

if ans == 1:
  print('Yes')
else:
  print('No')
a = list(map(int,input().split()))

i = 0

if(a[i] == a[i+1] and a[i] == a[i+2]):
  print("No")
else:
  print("Yes")
A,B,C = input().split()
A = int(A)
B = int(B)
C = int(C)
if A == B == C :
    print('No')
else :
    print('Yes')
import sys

input = sys.stdin.readline

res = list(map(int, input().split()))
if len(set(res)) == 1:
    print("Yes")
else:
    print("No")
A, B, C = map(int, input().split())

if A == B:
    if C == A or C == B:
        print('No')
    else:
        print('Yes')
if B == C:
    if A == B or A == C:
        print('No')
    else:
        print('Yes')
if C == A:
    if B == A or B == C:
        print('No')
    else:
        print('Yes')
else:
    print('No')
a, b, c = map(int, input().split())

if a==b or a==c or b==c:
  print("No")
else:
  print("Yes")
i=input().split()
a=i[0]
b=i[1]
c=i[2]
if(a==b and b==c):
 print("YES")
else:
 print("NO")
a, b, c = map(int, input().split())
if a == b and a == c:
    print("NO")
elif a != b and a != c and b != c:
    print("NO")
else:
    print("YES")
def main():
    A, B, C = input().split()
    if A == B and A == C:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    main()
arr=list(map(int,input().split()))
cnt=0
if(arr[0]==arr[1]):
  cnt+=1
if(arr[0]==arr[2]):
  cnt+=1
if(arr[1]==arr[2]):
  cnt+=1
if(cnt==3):
  print("NO")
else:
  print("Yes")
#155 a 
a,b,c=map(int,input().split())
if a==b==c:
    print("No")
else:
    print("Yes")
a, b, c = map(int, input().split())
if a == b and a == c and b == c:
  print("Yes")
else:
  print("No")
A,B,C=map(int,input().split())

if A==B and B==C and A!=C:
  print('Yes')
elif B==C and C==A and B!=A:
  print('Yes')
elif C==A and A==B and C!=B:
  print('Yes')
else:
  print('No')
a, b, c = map(int, input().split())

if a == b and a == c:
  print('No')
elif a != b and a != c:
  print('No')
else:
  print('Yes')
x,y,z = map(int, input().split())

if (x == y and y != z) or (x==z and y !=z):
  print("Yes")
else:
  print("No")
A, B, C = map(int, input().split())
if A == B:
  print("Yes")
  exit()
if B == C:
  print("Yes")
  exit()
if A == C:
  print("Yes")
  exit()

print("No")
A = list(map(int, input().split()))

if A[0] == A[1] == A[2] or A[0] != A[1] and A[0] != A[2]:
    print("No")
else:
    print("Yes")
a, b, c = input().split()

if a == b or a == c or b == c:
  print('Yes')
else:
  print('No')
A,B,C = map(int,input().split())
if A==B and B==C and A==C:
    print("No")
else:
    print("Yes")
A,B,C = [int(x) for x in input().split()]

if A != B and B != C and C!= A:
	print("No")
else:
	print('Yes')
a,b,c = input().split()
if a == b:
    if b == c:
        print('No')
    else:
        print('Yes')
elif b == c:
    print('Yes')
else:
    print('No')
a, b, c = list(map(int, input().split()))

if a==b or a==c or b==c:
    print("Yes")
else:
    print("No")
data = list(map(int, input().split()))
if len(set(data)) == 1:
    print('No')
else:
    print('Yes')
A = list(map(int, input().split()))

if A[0] == A[1] != A[2] or A[0] != A[1] == A[2] or A[0] == A[2] != A[1]:
  print("Yes")
elif A[0] == A[1] == A[2]:
  print("No")
a,b,c = map(int,input().split())
print("No" if a==b==c else "Yes")
a,b,c = map(int,input().split())
if a == b and a == c:
    print("No")
else:
    print("Yes")
a,b,c=map(int,input().split())
if a==b==c:
  print('No')
else:
  print('Yes')
a = input().split()
if a[0] == a[1] and a[0] == a[2]:
    print("No")
else:
    print("Yes")
a, b, c = input().split(" ")
a = int(a)
b = int(b)
c = int(c)
 
if a==b:
	if a!=c:
		print("YES")
	else:
		print("NO")
elif a==c:
  print("YES")
elif b==c:
  print("YES")
else:
  print("NO")
data=list(map(int,input().split()))
data.sort()
ans="No"
if data[0]==data[1]:
    if data[1]==data[2]:
        ans="No"
    else:
        ans='Yes'
print(ans)
a,b,c = input().split(' ')

# aとbが等しい　かつ　aはcと等しくない
if a == b and a != c:
    print("Yes")
# それ以外の時
else:
    print("No")
A, B, C = map(int, input().split())
if A == B == C:
    print('No')
else:
    print('Yes')
a,b,c = map(int, input().split())
if a == b and b == c and c == a:
  print("No")
else:
  print("Yes")
A,B,C=map(int,input().split())
if A==B and A !=C:
    print("No")
elif A==C and A!=B:
    print("No")
elif B==C and B !=A:
    print("No")
else:
    print("Yes")
abc = input().split(" ")
a = int(abc[0])
b = int(abc[1])
c = int(abc[2])

d = 0
if a==b:
    d=d+1
if b==c:
    d=d+1
if c==a:
    d=d+1
if d==1:
    print("yes")
else:
    print("no")
A, B, C = [int(i) for i in input().split()]

if A == B == C:
    print("No")
elif A != B != C:
    print("No")
else:
    print("Yes")
num = input()
x,y,z = num.split(" ")
if x == y or y == z or x == z:
    print("Yes")
else:
    print("No")
a=list(map(int, input().split()))
if len(a) != len(set(a)):
    print("Yes")
else:
    print("No")
A = list(map(int,input().split()))
A_unique = list(set(A))
A_length = len(A_unique)

if A_length == 2:
    print("YES")

else:
    print("NO")
a=list(map(int,input().split()))
a.sort()
if a[0] == a[1] and a[1] == a[2] and a[0] == a[2]:
  print("No")
else:
  print("Yes")
a,b,c=map(int,input().split())
if a==b and b!=c:
  print("Yes")
if c==b and b!=a:
  print("Yes")
if a==c and b!=c:
  print("Yes")
else:
  print("No")
a,b,c = map(int,input().split())
aa = []
if a == b:
    aa.append(1)
if a == c:
    aa.append(1)
if b == c:
    aa.append(1)
if len(aa) == 1:
    print("yes")
else:
    print("no")
x, y, z = map(int, input().split())
if (x == z) and (x != y):
    print("Yes")
else:
    print("No")
A, B, C = map(int, input().split())

cnt = 0

if A == B:
    cnt += 1
if B == C:
    cnt += 1
if C == A:
    cnt += 1
    
if cnt == 0 or 3:
    print('No')

if cnt == 1:
    print('Yes')
a,b,c = map(int,input().split())
cnt = 0

if a == b:
    cnt += 1
elif b == c:
    cnt += 1
elif a == c:
    cnt += 1


if cnt == 1:
    print("Yes")
else:
    print("No")
A,B,C=map(int,input().split())
if (A==B and B!=C ) or (B==C and C!=A) or (C==A and A!=B):
    print("Yes")
else:
    print("NO")
n = list(map(int, input().split()))
s=0
for i, x in enumerate(n):
    if x in n[i+1:]: s+=1
print("%s" % "YES" if s==1 else "NO")
A,B,C=map(int,input().split())

ans='NO'

if A==B and A!=C: ans='YES'
if A==C and A!=B: ans='YES'
if B==C and B!=A: ans='YES'

print(ans)
a,b,c = map(int,input().split())
if a==b and b==c:
  print("No")
elif a!=b and b!=c or a!=c and c!=b:
  print("No")
else:
  print("Yes")
abc = list(map(int, input().split()))
if len(abc) == len(set(abc)):
    print("No")
    exit()
print("Yes")
import sys

for line in sys.stdin:
  A, B, C = [int(s) for s in line.split()]
    
if (A - B) * (B - C) * (C - A) == 0 and (A - B) + (B - C) + (C - A) == 2:
  print("Yes")
else:
  print("No")
A, B, C = map(int, input().split())

if int(A) == int(B) == int(C):
  print("Yes")
else:
  print("No")
a,b,c=map(int,input().split())

if a == b or a == c or b == c:
  if a == b and b == c:
    print("No")
  else:
    print("Yes")
else:
  print("Yes")
number_1,number_2,number_3= map(int,input().split())
if number_1 == number_2 and  number_1 != number_3 :
      print ('yes') 
elif  number_1 == number_3 and  number_1!= number_2 :
      print ('yes')
elif  number_1 !=  number_2 and  number_2== number_3 :
      print ('yes')
else :
    print ("no")
a, b, c = map(int, input().split())

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

if a == b != c or a != b == c:
  print("Yes")
else:
  print("No")
a,b,c = map(int,input().split())
if a == b and b == c:
  print("No")
else:
  print("Yes")
A = list(map(int, input().split()))
A = sorted(A)
if A[0] == A[1] and A[1] != A[2]:
    print("Yes")
else:
    print("No")
list = input()
a = list[0]
b = list[2]
c = list[4]
if a == b:
  if a != c:
    print("Yes")
  else:
    print("No")
else:
  if a == c:
    print("Yes")
  else:
    print("No")
A,B,C=map(int,input().split())
if (A==B or B==C or A==C) and A!=B!=C:
  print("Yes")
else:
  print("No")
s = list(map(int, input().split()))
print('yes' if len(s)==2 else 'no')
a = input()
if a[0] == a[1] and a[1] == a[2]:
  print('No')
elif a[0] != a[1] and a[0] != a[2]:
  print('No')
else:
  print('Yes')
a = list(map(int, input().split()))
a.sort()
print('Yes' if a[0]==a[1] else 'No')
inp = input()
A = int(inp.split()[0])
B = int(inp.split()[1])
C = int(inp.split()[2])
if A == B or A ==C:
  print("Yes")
else:
  print("No")
a, b, c = map(int,input().split())
if (a == b) and (b == c) and (c == a):
  print("No")
else:
  print("Yes")
A,B,C=input().split()
if A==B==C:
    print("Yes")
else:
    print("No")
a, b, c = map(int, input().split())

abc = [a,b,c]
abc.sort

if abc[0] == abc[1] and abc[1] != abc[2]:
    print('Yes')
    exit()

if abc[1] == abc[2] and abc[0] != abc[1]:
    print('Yes')
    exit()


print('No')
a = input()
if a[0] == a[1] and a[1] == a[2]:
  print('No')
elif a[0] != a[2] and (a[1] != a[2] and a[1] != a[0]):
  print('No')
else:
  print('Yes')
nums = [int(e) for e in input().split()]
for i in range(3):
    if nums[i] == nums[(i+1)%3]:
        print("Yes")
        break
    else:
        continue
    print("no")
a,b,c=map(int,input().split())
if a==b:
   print ("Yes")
elif a==c:
   print ("Yes")
elif b==c:
   print ("Yes")
else:
   print ("No")
import sys
a,b,c=map(int,input().split()) 
if a==b :
    if a==c:
        print('No')
        sys.exit()
    else:
        print('Yes')
        sys.exit()
if b==c:
    print('Yes')
    sys.exit()
    
print('No')
print('Yes' if set(map(int, input().split()))==2 else 'No')
a = input()
for i in  a:
    b = [j for j in a if i == j]
    if len(b) == 2:
        print("Yes")
    else:
    	print("No")
a,b,c = map(int,input().split())
abc = [a,b,c]
nabc = list(set(abc))

if len(abc)==len(nabc):
  print('No')
else:
  print('Yes')
a,b,c=input().split()
if a == b:
    if a != c:
        print('yes')
    else:
        print("no")
elif a == c:
    if a != b:
        print('yes')
    else:
        print("no")
else:
    print("no")
a=list(map(int, input().split()))
a.sort()
if a[0] == a[1] and a[0] != a[2]:
    print("Yes")
else:
    print("No")
nums= input().split()

nums.sort()


if nums[1] == nums[2] and nums[0]<nums[1]:
    print(True)
elif nums[1] == nums[0] and nums[1]<nums[2]:
    print(True)
else:
    print(False)
a,b,c = map(int, input().split())

if a == b:
    if b != c:
        print('Yes')
        exit()

if c == a:
    if a != b:
        print('Yes')
        exit()

if a != b and b != c:
    print('No')
    exit()

if a == b and b == c:
    print('No')
    exit()
alf=list(map(int,input().split()))
if(alf[0]!=alf[1] and alf[1]!=alf[2] and alf[0]!=alf[2]):
    print("NO")
elif(alf[0]==alf[1] and alf[2]==alf[1] and alf[0]==alf[2]):
    print("NO")
else:
    print("YES")
a,b,c=map(int,input().split())
 
if a==b or b==c or c==a and not a==b==c:
  print("Yes")
else:
  print("No")
a,b,c=map(int,input().split())
if a!=b and b==c:
  print("Yes")
if b!=a and a==c:
  print("Yes")
if c!=a and a==b:
  print("Yes")
else:
  print("No")
x,y,z = map(int,input().split())	
if y == x or y == z or x == z:
  print("Yes")
else:
  print("No")
import numpy as np
A, B, C = map(int, input().split())
print(A, B, C)


if len(set([A, B, C])) == 2:
    print('Yes')
else:
    print('No')
A,B,C=map(int, input().split()) #1 2 3
# print(A) 1

if A == B or A == C:
  print("YES")
else:
  print("NO")
arr = list(map(int, input().split()))
arr.sort()
print(['No','Yes'][arr[0] != arr[-1]])
a, b, c= map(int, input().split())

if((a==b and b!=c) or (a!=b and b==c) ):
    print('Yes')
else:
    (print('No'))
A,B,C = map(int,input().split())

if A == B == C:
  print("No")
else:
  print("Yes")
a,b,c=sorted(map(int,input().split()))
if a==b and a!=c:
    print('Yes')
elif a==c and a!=b:
    print('Yes')
else:
    print('No')
#A問題
a, b, c = map(int, input().split())

if a == b:
    if a == c:
        print("No")
    else:
        print("Yes")
elif a == c:
    if a == b:
        print("No")
    else:
        print("Yes")
else:
    print("No")
a,b,c = map(int,input().split())
if a == b and b == c and c == a: print('Yes')
elif a != b and b != c and c != a: print('Yes')
else: print('No')
import sys
 
for line in sys.stdin:
  A, B, C = [int(s) for s in line.split()]
    
if (A-B) * (B-C) * (C-A) == 0 and abs(A-B) + abs(B-C) + abs(C-A) == 2:
  print("Yes")
else:
  print("No")
a, b, c = map(int, input().split())
print("No" if a == b == c else "Yes")
x = input()
list = x.split()

if list[0] == list[1] and list[1] == list[2] and list[0] == list[2]:
    print('No')
elif list[0] != list[1] and list[2] != list[2] and list[0] != list[2]:
    print('No')
else:
    print('Yes')
a, b, c = map(int, input().split())
 
r = 0
r += 1 if a == b else 0
r += 1 if a == c else 0
r += 1 if b == c else 0
 
if r == 1:
    print('Yse')
else:
    print('No')
n=input().split()
a=int(n[0])
b=int(n[1])
c=int(n[2])
if a==b or b==c or a==c:
     print("Yes")
else:
    print("No")
li = list(map(int,input().split()))
a = set(li)
if len(a) < 3:
  print('Yes')
else:
  print('No')
A,B,C = map(int,input().split())

if A==B:
    if B==C:
        print("No")
    else:
        print("Yes")
else:
    print("Yes")
arr=list(map(int,input().split()))
if(len(set(arr))==3):
  print("No")
else:
  print("Yes")
a,b,c=map(int,input().split())
if a==b and b==c:
  ans="No"
else:
  ans="Yes"
print(ans)
A, B, C = tuple(map(int, input().split()))
if A == B or A == C or B == C:
    print("Yes")
else:
    print("No")
a,b,c=map(int,input().split())

if a==b or b==c:
  if a!=b or b!=c:
    print("Yes")
  else:
    print("No")
else:
  print("Yes")
import collections
inputs = input().split()
if len(collections.Counter(inputs)) == 2:
  print('yes')
else:
  print('no')
A, B, C = map(int, input().split())
if A == B == C or A != B != C != B:
  print("No")
else:
  print("Yes")
n = list(map(int, input().split()))
a = n[0]
b = n[1]
c = n[2]
print(a, b, c)

if a != b != c != a or a == b == c:
    print("No")
else:
    print("Yes")
a, b, c = map(str, input().split())

if a == b and b != c:
    print("Yes")
    exit()
elif a == c and b != a:
    print("Yes")
    exit()
else:
    print("No")
c = list(map(int, input().split()))

if(int(len(set(c)) == 3)):
    print("No")
elif(int(len(set(c)) == 2)):
    print("Yes")
l = list(map(int, input().split()))

if l[0]==l[1] and l[1]==l[2]:
    print("No")
else:
    print("Yes")
A, B, C = map(int, input().split(" "))


if A == B and B != C:
  print('Yes')
if B == C and C != A:
  print('Yes')
if C == A and A != B:
  print('Yes')

if A != B and B != C:
  print('No')
if A == B and B == C:
  print('No')
A,B,C = map(int,input().split())
if A==B and B==C:
    print("No")
else:
    print("Yes")
a,b,c=[int(x) for x in input().split()]
if a==b and b==c:
  print("No")
else:
  print("Yes")
N = list(map(int, input().split()))

N = set(N)

if len(N) == 3:
  print('No')
else:
  print('Yes')
A, B, C = map(int, input().split())
if (A == B) or (B == C ):
    print("Yes")
else:
    print("No")
import numpy as np

i=list(map(int, input().split()))
print(i)
if 1<=i[0]<=9:
    if i[0]==i[1]&i[1]!=i[2]:
        print('Yes')
    elif i[0]==i[2]&i[1]!=i[2]:
        print('Yes')
    elif i[1]==i[2]&i[0]!=i[1]:
        print('Yes')
    else:
        print('no')
A,B,C=map(int,input().split())
if A==B==C or A!=B!=C:
  print('No')
else:
  print('Yes')
A, B, C = list(map(int, input().split()))


if (A == B or B == C or A == C):
  if A == B and B == C and C == A:
    print('No')
  else:
    print('Yes')
x,y,z = map(int,input().split())	
if y == x == z or x != y != z:
  print("No")
else:
  print("Yes")
A,B,C = map(int,input().split())
if A==B:
    if B==C:
        print("No")
    else:
        print("Yes")
else:
    print("Yes")
a=input()
if (a[0]==a[1] and a[1]==a[2] and a[0]==a[2] )or (a[0]!=a[1] and a[1]!=a[2] and a[0]!=a[2]):
  print('No')
else:
  print('Yes')
import sys

a, b, c = sys.stdin.readline().strip().split(" ")

if a == b and b == c:
    print "Yes"
else:
    print "No"
a, b, c = map(int, input().split())

if a == b == c:
  print('No')
elif a != b != c:
  print('No')
else:
  print('Yes')
i = list(map(int, input().split()))
s = set(i)
if len(s) == 1:
    print("No")
elif len(i) == len(s):
    print("Yes")
else:
    print("No")
A, B, C = map(int, input().split())
if (A == B and A != C) or (A == C and A != B):
    print('Yes')
else:
    print('No')
L = set(list(map(int, input().split())))
if len(L)==2:
  print('YES')
else:
  print('NO')
a,b,c = map(int,input().split())
aa = []
if a == b:
    aa.append(1)
if a == c:
    aa.append(1)
if b == c:
    aa.append(1)
print(len(aa))
print(aa)
if len(aa) == 1:
    print("yes")
else:
    print("no")
A, B, C = map(int, input().split())
if (A == B == C) or (A != B != C):
    print("No")
else:
    print("Yes")
A,B,C = [int(x) for x in input().split()]

if A == B and A == C:
    if B != C:
        print("Yes")
    else:
        print("No")
elif B == A and B == C and A == C:
    if A != C:
        print("Yes")
elif C == A and C == B and B == A:
    if B != C:  
        print("Yes")
else:
    print("No")
a = list(map(int, input().split()))
if a[0] == a[1] and a[0] == a[2]:
    print("Yes")
else:
    print("No")
a,b,c = map(int, input().split(" "))
t = (1<<a) ^ (1<<b) ^ (1<<c)
if t is not 0:
  print("Yes")
else:
  print("No")
A, B, C= map(int, input().split())
count = 0 
    
if A==B:
    if A!=C:
        print('Yes')
    else:
        print('No')
if A==C:
    if A!=B:
        print('Yes')
    else:
        print('No')
if C==B:
    if A!=C:
        print('Yes')
    else:
        print('No')
A,B,C = list(map(int,input().split()))
if A==B and B!=C or A==C and B!=C or A==C and B!=C:
    print("Yes")
else:
    print("No")
n = list(map(int, input().split()))
if n[0] != n[1]:
    if n[1] == n[2]:
        print("Yes")
        exit()
    if n[0] == n[2]:
        print("Yes")
        exit()
    if n[0] != n[2]:
        print("No")
        exit()
if n[0] == n[1]:
    if n[0] != n[2]:
        print("Yes")
        exit()
print("Yes")
arr=list(map(int,input().split()))
cnt=0
if(arr[0]==arr[1]):
  cnt+=1
if(arr[0]==arr[2]):
  cnt+=1
if(arr[1]==arr[2]):
  cnt+=1
if(cnt==2):
  print("Yes")
else:
  print("No")
input_line = input().split(' ')

num=set(input_line)

if num==2:
  print('Yes')
else:
  print('No')
a,b,c = map(int,input().split())
if a == b == c:
    print("NO")
elif a == b or b == c or c == a:
    print("YES")
else:
    print("NO")
a,b,c = map(int, input().split())
n = (a + b + c)/3

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

if a==b or a==c or b==c: print('Yes')
else: print('No')
a, b, c, = map(int, input().split())

if a == b == c or a != b != c:
    print('No')
else:
    print('Yes')
N =[int(i) for i in input().split(" ")]
count=0
print(N)
for j in range(len(N)-1):
    for k in range(j+1,len(N)):
        if N[j]==N[k]:
            count += 1
print(count)
if count==1:
    print("Yes")
else:
    print("No")
i=input().split()
a=i[0]
b=i[1]
c=i[2]
if((a==b and b!=c) or (b==c and c!=a) or (a==c and c!=b)):
 print("YES")
else:
 print("NO")
a, b, c = map(int, input().split(" "))

if a == b == c:
    print("No")
elif a == b & a == c & b == c:
    print("Yes")
else:
    print("No")
a = list(map(int, input().split()))

a.sort()
if a[0] == a[2] or a[0] < a[1] < a[2]:
  print('Yes')
else:
  print('No')
items = list(map(int, input().split()))

flg = False
for item in items:
  if items.count(item) >= 2:
    print('Yes')
    flg = True
    break
if not flg:
  print('No')
a = list(map(int,input().split()))
b = 0
if a[0]==a[1]:
    if a[1] == a[2]:
        print("No")
        b=1
if b==0:
    print("Yes")
a,b,c=map(int,input().split())
if a==b and a!=c:
  print("yes")
elif a==c and a!=b:
  print("yes")
elif c==b and a!=c:
  print("yes")
else:
  print("no")
a,b,c = list(map(int, input().split()))

if a == b:
    if a != c:
        print("yes")
else:
    print("no")
a,b,c=map(int,input().split())

if a==b or b==c:
  if a!=b or b!=c or a!=c:
    print("Yes")
  else:
    print("No")
else:
  print("Yes")
a=list(map(int,input().split()))
if len(set(a))==1:
  print('Yes')
else:
  print('No')
A,B,C = map(int,input().split())
if A == B or A == C:
    print ("Yes")
else: print ("No")
a,b,c=list(map(int,input().split()))
if(a==b==c):
  print('No')
else:
  print('Yes')
a = input().split()
count = 0
if a[0] == a[1]:
    count = count + 1
if a[1] == a[2]:
    count = count + 1
if a[0] == a[2]:
    count = count + 1
print("Yes" if count == 2 else "No")
a,b,c=input().split()
ans="Yes"
if a!=b and b!=c and c!=a:
  ans="No"
if a==b==c:
  ans="No"
a = input().split()
  
if(int(a[0])==int(a[1])==int(a[2])):
    print("no")
elif(int(a[0])!=int(a[1])!=int(a[2])):
    print("no")
else:
    print("yes")
if len(set(input()))==2: print('Yes')
else: print('No')
a,b,c = map(int,input().split())

if a == b:
  if b != c:
    print('YES')
  else:
    print('NO')
else:
  if b != c and a != c:
    print('NO')
  else:
    print('YES')
a = list(map(int, input().split()))

a.sort()

if a[0] == a[1] and a[1] != a[2]:
    print('Yes')
else:
    print('No')
N = set(map(int,input().split()))
A = 'YES'
if len(N) == 2:
  print(A)
else:
  A = 'NO'
  print(A)
x = input().split(' ')

if  x[0] == x[1] != x[2]:
    print("yes")
elif x[1] == x[2] != x[0]:
    print("yes")
elif x[2] == x[0] != x[1]:
    print("yes")
else:
    print("No")
a, b, c = map(int, input().split())
if a== b and b == c:
    print('No')
else:
    if a != b and b != c:
        print('No')
    else:
        print('Yes')
N = input()
N = N.split()


def main():
    if (N[0] == N[1]) and (N[1] == N[2]):
        return 'Yes'

    if (N[0] != N[1]) and (N[1] != N[2]):
        return 'Yes'

    return 'No'


print(main())
line = list(input().split())
line.sort()
if line[0] != line[2]:
    if line[0] == line[1]:
        print("Yes")
    else:
        print("No")
else:
    print("No")
A,B,C = map(int,input().split())

if A == B:
    if A != C and B != C:
        print("Yes")
    else:
        print("No")
elif B == C:
    if A != C and A != B:
        print("Yes")
    else:
        print("No")
elif A == C:
    if B != C and B != A:
        print("Yes")
    else:
        print("No")
A, B, C = map(int, input().split())

if A == B or B == C or C == A:
  if not A == B and B == C:
    print("Yes")
  else:
    print("No")
else:
  print("No")
a = list(map(int,input().split()))
ans = "No"

if a[0] == a[1]:
  if a[0] != a[2]:
   	ans = "Yes"
else:
  if a[0] == a[1] or a[1] == a[2]:
    ans = "Yes"
    
print(ans)
a, b, c = map(int, input().split())
if a==b or b==c or c==a:
    print("Yes")
else:
    print("No")
N =[int(i) for i in input().split(" ")]
j=0
count=0
for k in range(j+1,len(N)):
    if N[j]==N[k]:
        count += 1
    j+=1
    
if count==1:
    print("Yes")
else:
    print("No")
import sys 
read = sys.stdin.buffer.read 
readline = sys.stdin.buffer.readline 
readlines = sys.stdin.buffer.readlines 
import numpy as np 
MOD = 10 ** 9 + 7 
MOD2 = 998244353

A,B,C = map(int, read().split())
print('No' if A == B == C else 'Yes')