peterverebics/CodeNet_Python_118 huggingface dataset:
a, b, c = list(map(int, input().split()))
if a == b and a != c:
    print('Yes')
elif b == c and b != a:
    print('Yes')
elif a == c and a != b:
    print('Yes')
else:
    print('No')
X,Y,Z = map(int,input().split())
if(X == Y):
    if(Y == Z):
        print("No")
    else:
        print("Yes")
elif(X == Z):
    if(X == Y):
        print("No")
    else:
        print("Yes")
elif(Y == Z):
    if(X == Y):
        print("No")
    else:
        print("Yes")
else:
    print("No")
li = list(map(int,input().split()))
li.sort()

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

elif C==B and A!=C:print("Yes")

else:print("No")
def resolve():
  a=list(input().split())
  if len(set(a)) == 2:
    print("Yes")
  else:
    print("No")
resolve()
import sys
input = sys.stdin.readline

def main():
    inp = input().split()
    if len(list(set(inp))) == 2:
        print('Yes')
    else:
        print('No')



if __name__ == "__main__":
    main()
X = list(map(int, input().split()))
print('Yes' if len(set(X)) == 2 else 'No')
A,B,C=input().split()
a=int(A)
b=int(B)
c=int(C)
if a==b or b==c or a==c:
    if not(a==b and b==c):
        print("Yes")
    else:
        print("No")
else:
    print("No")
a, b, c = input().split()
 
if a == b and a == c and b == c:
  print('No')
elif a == b or a == c or b == c:
  print('Yes')
else:
  print('No')
A,B,C=map(int,input().split())

flag=[0]*3

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


print(main())
a, b, c = map(int,input().split())

if a == b and not b == c:
  print("Yes")
elif b == c and not c == a:
  print("Yes")
elif a == c and not b == a:
  print("Yes")
else:
  print("No")
N = list(map(int, input().split()))
 
N = set(N)
 
if len(N) == 3 or len(N) == 1:
  print('No')
else:
  print('Yes')
a,b,c=map(int,input().split())
if a==b:
  if a!=c :
    print('Yes')
  else:
    print('No')
elif a==c:
  if a!=b :
    print('Yes')
  else:
    print('No')   
elif c==b:
  if a!=c :
    print('Yes')
  else:
    print('No')    
else:
  print('No')
data = [int(i) for i in input().split()]

t = 0
if data[0] == data[1]:
    t+=1
if data[0] == data[2]:
    t+=1
if data[1] == data[2]:
    t+=1

if t == 1:
    print("Yes")
else:
    print("No")
A, B, C = map(int, input().split())
 
if (A == B) and (B == C) and (C == A):
  print("No") 
elif (A == B) or (B == C) or (C == A):
  print("Yes")
else:
  print("No")
def poor(arr):
    if len(set(arr)) == 2:
        return 'Yes'
    else:
        return 'No'

if __name__ == "__main__":
    arr = [int(s) for s in list(input().split())]
    print(poor(arr))
l = list(map(int, input().split()))
ll=set(l)
if len(ll)==2:print("Yes")
else:print("No")
def resolve():
    L = list(map(int, input().split()))
    print("Yes" if len(L)-1 == len(set(L)) else "No")

if '__main__' == __name__:
    resolve()
a = map(int, input().split())
if len(set(a) ) == 2:
    print("Yes")
else:
    print("No")
import sys
a,b,c = map(int, input().split())
if a == b:
  if a != c:
    print("Yes")
    sys.exit()
  else:
    print("No")
    sys.exit()
elif a == c or b == c:
  print("Yes")
  sys.exit()
print("No")
a, b, c = map(int, input().split())
if a == b and b != c:
    print('Yes')
    exit()
if b == c and c != a:
    print('Yes')
    exit()
if c == a and b != a:
    print('Yes')
    exit()
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 = set(map(int, input().split()))
if len(A) == 2:
    print("Yes")
else:
    print("No")
mylist =set(list(map(int, input().split())))
if len(mylist) == 2:
    print('Yes')
else:
    print('No')
A,B,C=list(map(int, input().split()))
if A==B!=C or A!=B==C or A==C!=B:
    print('Yes')
else:
    print('No')
a,b,c=map(int,input().split())
d =0
if a==b:
  d+=1
if b==c:
  d+=1
if c==a:
  d+=1
if d==1:
  print('Yes')
else:
  print('No')
# coding: utf-8


def solve(*args: str) -> str:
    abc = list(map(int, args[0].split()))

    ret = 'No'
    if abc.count(abc[0]) == 2:
        ret = 'Yes'
    if abc.count(abc[1]) == 2:
        ret = 'Yes'
    if abc.count(abc[2]) == 2:
        ret = 'Yes'

    return ret


if __name__ == "__main__":
    print(solve(*(open(0).read().splitlines())))
t = list(map(int, input().split()))
a = t[0]
b = t[1]
c = t[2]

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

l = [0]*9
for i in L:
    l[i-1] += 1
if max(l) == 2:
    print('Yes')
else:
    print('No')
# -*- coding: utf-8 -*-
a, b, c = map(int, input().split())

ans = 'No'

if a == b or b == c or c == a:
  if a != b or b != c or c != a:
    ans = 'Yes'
    
print(ans)
k=list(map(int,input().split()))
from collections import Counter
l=Counter(k)
if len(l)==2:
  print("Yes")
else:
  print("No")
#a = input()
x, y ,z= map(int, input().split())

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

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

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

lis=[a,b,c]
lis.sort()

a=lis[0]
b=lis[1]
c=lis[2]
if a==b and b!=c:
    print("Yes")
elif b==c and a!=b:
    print("Yes")
else:
    print("No")
# coding: utf-8

line = input().split(" ")
if line[0] == line[1]:
    if line[0] == line[2]:
        print("No")
    else:
        print("Yes")
elif line[0] == line[2]:
    if line[0] == line[1]:
        print("No")
    else:
        print("Yes")
elif line[1] == line[2]:
    if line[0] == line[1]:
        print("No")
    else:
        print("Yes")
else:
    print("No")
#!/usr/bin/python3
# -*- coding:utf-8 -*-

def main():
  a, b, c = map(int, input().strip().split())
  if a==b and a!=c:
    print('Yes')
    return
  if a==c and a!=b:
    print('Yes')
    return
  if c==b and a!=b:
    print('Yes')
    return
  print('No')

if __name__=='__main__':
  main()
a,b,c=map(int,input().split())
if a==b and a!=c:
	print('Yes')
elif a==c and a!=b:
	print('Yes')
elif b==c and a!=b:
	print('Yes')
else:
	print('No')
l = list(int(x) for x in input().split())
if len(set(l)) == 2:
    print('Yes')
else:
    print('No')
b = list(map(int,input().split()))

if len(set(b)) == 2:
    print('Yes')
else:
    print('No')
A=[int(i) for i in input().split()]
A.sort()
a,b,c=A
if a==b and b!=c:
    print("Yes")
elif a!=b and b==c:
    print("Yes")
else:
    print("No")
a, b, c = map(int, input().split())
if a==b:
  if a!=c:
    print ("Yes")
  else:
    print("No")
elif b==c:
  if b!=a:
    print ("Yes")
  else:
    print("No")
elif c==a:
  if c!=b:
    print ("Yes")
  else:
    print("No")
else:
  print ("No")
if len(set(input().split())) == 2:
  print("Yes")
else:
  print("No")
A=list(map(int,input().split()))
B=len(set(A))
if B==2:
    print('Yes')
else:
    print('No')
a,b,c = map(int,input().split())

if (a==b and a!=c) or (a==c and a!=b) or (b==c and b!=a):
  print('Yes')
else:
  print('No')
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
abc = set(map(int, input().split()))

if len(abc) == 2:
  print('Yes')
else:
  print('No')
# Poor
num = set(map(int, input().split()))
ans = ['Yes', 'No'][len(num) != 2]
print(ans)
a,b,c = map(int,input().split())
f=0
if a==b and a!=c:
   f=1
elif a==c and a!=b:
    f=1
elif c==b and c!=a:
    f=1

if f==1:
    print('Yes')
else:
    print('No')
L=len(set(list(map(int,input().split()))))
print("Yes" if L==2 else "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")
s = set(input().split())
 
if len(s) == 2:
  print('Yes')
else:
  print('No')
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")
def listint():
    a = input().split()
    for i in range(len(a)):
        a[i] = int(a[i])
    return a

a,b,c = listint()
poor = False
if a == b:
    if a != c:
        poor = True
if a == c:
    if a != b:
        poor = True
if b == c:
    if a != b:
        poor = True
if poor == True:
    print('Yes')
else:
    print('No')
A, B, C = [int(x) for x in input().split()]

if A == B:
    if A == C:
        print('No')
    else:
        print('Yes')
elif A == C:
    print('Yes')
else:
    if B == C:
        print('Yes')
    else:
        print('No')
A = list(map(int, input().split()))
A = sorted(A)

if (A[0] == A[1] and A[1] != A[2]):
    print("Yes")
elif (A[0] != A[1] and A[1] == A[2]):
    print("Yes")
else:
    print('No')
A=list(map(int,input().split()))
if A[0]==A[1]==A[2]:
    print('No')
elif A[0]==A[1]:
    print('Yes')
elif A[0]==A[2]:
    print('Yes')
elif A[1]==A[2]:
    print('Yes')
else:
    print('No')
A = list(map(int, input().split()))
L = []
for i in A:
  if i not in L:
    L.append(i)
if len(L) == 2:
  print('Yes')
else:
  print('No')
if(len(list(set(input().split())))) == 2:
  print('Yes')
else:
  print('No')
a,b,c=map(int,raw_input().split())
if(a==b and b!=c):
    print "Yes"
elif(a==c and b!=c):
    print "Yes"
elif(b==c and a!=b):
    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 (int(A!=B) + int(B!=C) + int(C!=A)):
  print("Yes")
else:
  print("No")
A = input().split()
 
if (int(A[0]) == int(A[1])) and (int(A[1]) == int(A[2])):
  print("No")
elif (int(A[0]) != int(A[1])) and (int(A[1]) != int(A[2])) and(int(A[0]) != int(A[2])):
  print("No")
else:
  print("Yes")
import math

ABC = input().split()
A = int(ABC[0])
B = int(ABC[1]) 
C = int(ABC[2])

count = 0

if A == B:
  count += 1
if A == C:
  count += 1
if B == C:
  count += 1
  
if count == 1:
  print('Yes')
else:
  print('No')
num = list(map(int, input().split()))
if len(set(num)) == 2:
    print("Yes")
else:
    print("No")
a,b,c=map(int ,input().split())
if(a==b and a==c):
	print("No")
elif(a!=c and a!=b and b!=c):
	print("No")
else:
	print("Yes")
abc = set(list(map(int, input().split())))
l = len(list(abc))
print('Yes') if l == 2 else print('No')
a,b,c=map(int,input().split())
s=set([a,b,c])
if len(s)==2:
	print("Yes")
else:
	print("No")
a,b,c = map(int,input().split())
if len(set([a,b,c])) == 2:
    print("Yes")
else:
    print("No")
input_line = input().split(' ')

num=set(input_line)

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

if count==1:
  print('Yes')
else:
  print('No')
a,b,c=map(int,input().split())
if a==b and b==c:print("No")
elif a!=b and b!=c and c!=a:print("No")
else:print("Yes")
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 cnt == 3:
    print('No')

if cnt == 1:
    print('Yes')
a,b,c=map(int,input().split())
if (a-b)*(b-c)*(c-a) == 0 and a+b!=2*c:
  print("Yes")
else:
  print("No")
a, b, c = input().split()
count = 0
if a == b:
  count +=1
if a ==c:
  count +=1
if b == c:
  count += 1

if count == 1:
  print("Yes")
else:
  print("No")
A = list(map(int, input().split()))
A.sort()

if A[0] == A[2]:
    print('No')
elif A[0] == A[1] or A[1] == A[2]:
    print('Yes')
else:
    print('No')
nums = tuple(map(int, input().split()))
s = set(nums)
if len(s) == 2:
    print('Yes')
else:
    print("No")
a,b,c = map(int, input().split())
n = (a + b + c)/3

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

if (a == b and a != c) or (a == c and a != b)or (b == c and b != a):
    print("Yes")
else:
    print("No")
A = set(input().split())
if len(A) == 2:
  print("Yes")
else:
  print("No")
a, b, c = map(int, input().split())

set = {a,b,c}
if len(set) == 2:
  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")
    exit()
print("No")
if __name__ == '__main__':

    s = set([int(i) for i in input().split()])

    result = "No"
    if len(s) == 2:
        result = "Yes"
    print(result)
A, B, C = input().split()
A = int(A)
B = int(B)
C = int(C)

flag = 'No'
if A == B or B == C or C == A:
  if A == B and B == C and C == A:
    flag = 'No'
  else:
    flag = 'Yes'
print(flag)
a = list(map(int, input().split()))
if len(set(a)) == 2:
  print("Yes")
else:
  print("No")
i = list(map(int,input().split()))
if (i[0] == i[1] and i[0] != i[2]) or (i[0] == i[2] and i[0] != i[1])  or (i[1] == i[2] and i[1] != i[0]):
  print("Yes")
else:
  print("No")
a, b, c = map(int, input().split())
print('No' if (a == b and b == c) or (a != b and b != c and c != a) else 'Yes')
A = list(map(int, input().split()))#リスト

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

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

if a == b:
  if a == c:
    print("No")
  else:
    print("Yes")
else:
  if a == c:
    print("Yes")
  else:
    if b == c:
      print("Yes")
    else:
      print("No")
list1=list(map(int,input().split()))
A=list1[0]
B=list1[1]
C=list1[2]
if list1.count(A)==2 or list1.count(B)==2 or list1.count(C)==2:
  print("Yes")
else:
  print("No")
L=map(int,input().split())
L=sorted(L)
if L[0]==L[1] and L[1]<L[2]:
    print('Yes')
elif L[0]<L[1] and L[1]==L[2]:
    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("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 == 1:
    print("Yes")
else:
    print("No")
A, B, C = map(int, input().split())

def poor():
    if A == B:
        if A != C:
            return "Yes"
    elif A == C:
        if A != B:
            return "Yes"
    elif B == C:
        if A != B:
            return "Yes"
    return "No"

print(poor())
a,b,c = map(int, input().split())

if a==b and b==c and c==a:print("No")
elif a!=b and b!=c and c!=a:print("No")
else:print("Yes")
a, b, c = map(int, input().split())
if a == b == c or a != b and b != c and a != c:
	print("No")
else:
	print("Yes")
list = input().split()
 
for i in range(0, len(list)):
	list[i] = int(list[i])
    
a = list[0]
b = list[1]
c = list[2]
 
if a == b:
  if a != c:
    print("Yes")
  else:
    print("No")
elif b == c:
  if a != b:
    print("Yes")
  else:
    print("No")
elif a == c:
  if a != b:
    print("Yes")
  else:
    print("No")
    
elif a != b:
  if a != c:
    print("No")
#-*- coding: utf-8 -*-
a,b,c = map(int,input().split())
if a == b == c:
    print("No")
elif a != b and a != c and b != c:
    print("No")
else :
    print("Yes")
print("Yes" if len(set(list(map(int, input().split())))) == 2 else "No")
A, B, C = map(int, input().split())
if A == B and A == C and B == C:
    print('No')
elif A != B and A != C and B != C:
    print('No')
else:
    print('Yes')
s = input().split()
ans = "NO" if s[0] == s[1] == s[2] else "YES"
print(ans)
a, b, c = map(int, input().split())
if(a==b or b==c or c==a and not (a==b and b==c)):print("Yes")
else:print("No")
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 != C) and (A == B == C)):
  print("No")
else:
  print("Yes")
a, b, c = map(int, input().split())

list = (0, b - a, c - a)
cnt = 0
for i in list:
    if i == 0:
       cnt += 1

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

if (a == b and a == c) or (a != b and a != c):
    print("No")
else:
    print("Yes")
A,B,C = input().strip().split()
if A == B or B == C or C == A:
    print('Yes')
else:
    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')
A,B,C=input().split()

if  A==B==C:
    print('No')
elif A!=B and A!=C and B!=C:
    print('No')
else:
    print('yes')
n = list(map(int, input().split()))
if n[0] == n[1]:
    print("No")
    exit()
    if n[0] == n[2]:
        print("No")
        exit()
print("Yes")
A, B, C = map(int, input().split())
if A == B == C:
    print('No')
elif A != B and A != C:
    print('No')
else:
    print('Yes')
A = list(map(int, input().split(" ")))
count=0
if A[0]==A[1]:
    count += 1
if A[0]==A[2]:
    count+=1
if A[1]==A[2]:
    count += 1

if count == 1:
    print("YES")
else:
    print("NO")
A = input().split()
 
if (int(A[0]) == int(A[1])) and (int(A[1]) == int(A[2])):
  print("No")
elif (int(A[0]) != int(A[1])) and (int(A[1]) != int(A[2])):
  print("No")
else:
  print("Yes")
def check(input_list):
    kawaiso = False
    a = input_list[0]
    b = input_list[1]
    c = input_list[2]

    if((a == b or a == c or b == c) and not(a == b and b == c)):
        kawaiso = True

    return kawaiso

if __name__ == '__main__':
    input_list = input().split()
            
    if check(input_list):
        print("yes")
    else:
        print("no")
A, B, C = map(int, input().split())

if A == B or A == C:
    if B == C:
        print('No')
    else:
        print('Yes')
else:
    print('No')
A,B,C = map(int,input().split())
if A == B and B == C:
  print("No")
else:
  print("Yes")
a, b, c = map(int,input().split())
lst = [a,b,c]
if sorted(lst) == lst:
  print('No')
else:
  print('Yes')
from sys import stdin

a, b, c = [int(x) for x in stdin.readline().rstrip().split()]

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

if A == B == C or A != B != C:
    print("No")
else:
    print("Yes")
a = list(map(int,input().split()))
if(len(set(a)) == 1):
    print("No")
else:
    print("Yes")
ans = list(int(i) for i in input().split()) 
ans.sort()

if ans[0]==ans[1] or ans[1] == ans[2]:
    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=list(map(int,input().split()))
if (A[0]==A[1]==A[2]) or (A[0]!=A[1]!=A[2]):
  print("No")
else:
  print("Yes")
a,b,c=map(int,input().split())
if a==b!=c or a!=b==c or a!=c==b:
  print('Yes')
else:
  print('No')
a, b, c = map(int, input().split())
my_list = [a, b, c]
if (a == b != c) and (a != b == c): print("Yes")
else: print("No")
A = list(map(int , input().split()))
if len(A) != A.count(A[0]):
    print('Yes')
else:
    print('No')
a,b,c = map(int, input().split())


A=a-b 
B=a-c


if (A==0 and B!=0) or (B==0 and A!=0):
  print("Yes")
else:
  print("No")
A,B,C=list(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")

elif B==C:
    if B==A:
        print("no")
    else:
        print("yes")

else:
    print("no")
ABC = set(input())

print("Yes"if len(ABC)==2 else "No")
a, b, c = map(int, input().split())
s = sorted([a,b,c])
if s[0] == s[1] and s[1] != s[2]:
    print("Yes")
else:
    print("No")
A,B,C=map(int,input().split())
ans = 0
if A==B:
  ans = ans+1
if B==C:
  ans=ans+1
if A==C:
  ans=ans+1
if ans==3:
  print("Yes")
else:
  print("No")
a, b, c = map(int, input().split())

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

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

if len(set(l)):
    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")
a,b,c=map(int,input().split())
if a==b and b==c: print('No')
elif a!=b and b!=c:print('No')
else:print('Yes')
n = list(map(int, input().split()))

count = 0
for i in range(1,3):
  if n[0] == n[i]:
    count+=1

if count == 1:
  print("Yes")
else:
  print("No")
a, b, c = map(int,input().split())
if a == b:
    if a == c:
        print("No")
    else:
        print("Yes")
elif a == c:
    print("Yes") 
else:
    print("No")
data = input().split()
 
a = int(data[0])
b = int(data[1])
c = int(data[2])
 
if a == b != c or b == c != a or a == c != b:
  ans = "Yes"
else:
  ans = "no"
  
print(ans)
a,b,c = map(int,input().split())
if a == b and b == c:
  print("No")
elif a != b and b != c:
  print("No")
else:
  print("Yes")
a, b, c = map(int, input().split())

if a is b and b is c:
  print('Yes')
else:
  print('No')
A,B,C=input().split()
if(A==B):
  if not(B==C):
    print("Yes")
elif(A==C):
  if not(A==B):
    print("Yes")
elif(C==B):
  if not(C==A):
    print("Yes")
else:
  print("No")
A,B,C=map(int,input().split())
if "AAB" or "ABA" or "BAA" or "AAC" or "ACA" or "CAA" or "BBA" or "BAB" or "ABB" or "CCA" or "CAC" or "ACC" or "BBC" or "BCB" or "CBB" or "CCB" or "CBC" or "BCC":
    print("Yes")
if "AAA" or "BBB" or "CCC" or "ABC":
    print("No")
input_text = input()

count = len(set(input_text.split(" ")))
if count == 1:
    print("No")
else:
    print("Yes")
a = input().split()
x=a[0]
y=a[1]
z=a[2]
if x==y:
    if x==z:
        print("no")
    else:
        print("yes")
else:
    if x==z:
        print("yes")
    else:
        if y==z:
            print("yes")
        else:
            print("no")
nums = list(map(int, input().split()))

nums.sort()

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