peterverebics/CodeNet_Python_118 huggingface dataset:
a, b, c = list(map(int, input().split()))

if (a == b):
    if (a != c):
        print("Yes")
        exit()
    else:
        print("No")
        exit()
if (b == c):
    if (b != a):
        print("Yes")
        exit()
    else:
        print("No")
        exit()
if (c == a):
    if (c != b):
        print("Yes")
        exit()
    else:
        print("No")
        exit()
a,b,c = map(int, input().split())
i = 0
if a == b and b != c:
  i = 1
elif a != b and b == c:
  i = 1
elif a == c and a != c:
  i = 1
 
print('Yes' if i else 'No')
a, b, c = map(int, input().split())
if a != b != c or a == b == c:
  print('No')
else:
  print('Yes')
L=list(map(int,input().split()))
L2=set(L)
print("Yes" if len(L)!=len(L2) else "No")
import sys
input = sys.stdin.readline


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


if __name__ == '__main__':
    main()
l = input().split()
l.sort()
if(l[0]!=l[2]):
    print('Yes')
else:
    print('No')
i = list(map(int, input().split()))
A = i[0]
B = i[1]
C = i[2]
if A == B != C :
  print('Yes')
elif A != B == C :
  print('Yes')
elif A != C == B :
  print('Yes')
else :
  print('No')
# cook your dish here
l= list(map(int, input().split()))
if(l[0]==l[1]!=l[2] or l[0]!=l[1]==l[2]):
  print("Yes")
else:
  print("No")
input = input().split(" ")
if input[0] == input[1]:
  if input[1] == input[2]:
    print("No")
else:
  print("Yes")
a = set(list(map(int, input().split())))
print('yes' if len(a) == 2 else 'no')
a,b,c = map(int,input().split())
if (a==b)&(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 and a != c:
    print("NO")
else:
    print("YES")
def resolve():
    A, B, C = map(int, input().split())

    if A == B and B == C:
        print('No')
        return

    if A == B or B == C:
        print('Yes')
        return

    print('No')


resolve()
a,b,c = map(int,input().split())
if a == b or a==c or c==b:
  print('yes')
else:
  print('No')
box = list(map(int, input().split()))
if box.count(box[0]) == 2:
  print("No")
elif box.count(box[1]) == 2:
  print("No")
else :
  print("Yes")
A,B,C=map(int,input().split())
if (A==B and B!=C ) or (C==A and A!=B):
    print("Yes")
else:
    print("NO")
a=list(map(int,input().split()))
if a[0]==a[1] & a[0]==[2]:
  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')
lis = list(input().split())
a=lis.count(lis[0])
b=lis.count(lis[1])
c=lis.count(lis[2])
if a+b+c == 4:
    print("Yes")
else:
    print("No")
import collections
elems = map(int, raw_input().split(' '))

def f(elems):
	elems.sort()
	return elems[0] == elems[1] and elems[1] != elems[2]


print 'Yes' if f(elems) else 'No'
a, b, c = [int(x) for x in 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")
a = [int(i) for i in input().split()]
a.sort()
if( ((a[0]!= a[1]) and a[1]==a[2]) or ((a[2]!= a[1]) and a[1]==a[0])):
	print('YES')
else:
	print('No')
n= [int(x) for x in input().split()]
n.sort()
if n[0]==n[1] and n[1]!=n[2]:
    print("YES")
elif n[0]!=n[1] and n[1]==n[2]:
    print("YES")
else:
    print("NO")
a,b,c=map(int,input().split())
l=[a,b,c]
m=sorted(l)
if len(m)==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('No')
else:
    print('No')
a, b, c = map(int, input().split())
if a == b == c:
    print('No')
else:
    print('Yes')
abc = list(map(int,input().split()))
if len(set(abc))==1:
  print("No")
else:
  print("Yes")
a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
if a==b:
    if b==c: 
        print('NO')
    else:
        print('YES')
elif b==c:
    if a==c: 
        print('NO')
    else:
        print('YES')
elif a==c:
    if b==c:
        print('NO')
    else:
        print('YES')
else:
    print('NO')
A, B, C = map(int, input().split())
if A == B and A == C:
    print("Yes")
elif 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:
  print("No")
else:
  print("Yes")
inputs = list(map(int, (input().split())))

a = inputs[0]
b = inputs[1]
c = inputs[2]
if(a & b & c == a):
    print("No")
    exit(0)

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

if len(set(a)) <= 2:
  print('Yes')
else:
  print('No')
[A,B,C] = list(map(int,input().split()))
l = [A,B,C]
l.sort()

if (l[0]+l[1]+l[2])/3 > l[0]:
  if l[0] == l[1] or l[1] == l[2]:
    print("Yes")
  else:
    print("No")
else:
  print("Yes")
hoge = input().split()

if hoge[0] == hoge[1]:
  if hoge[0] == hoge[2]:
    print("No")
  else :
    print("Yes")

else:
  if hoge[0] == hoge[2]:
    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:
    print("No")
kumi = input()
ans = 'No'
kumilist = kumi.split(' ')
for s in kumilist:
    if kumilist.count(s) != 1:
        ans = 'Yes'
print(ans)
a,b,c=map(int,input().split())
if a==b and b==c:
  ans="Yes"
else:
  ans="No"
print(ans)
a,b,c = map(int,input().split())

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

if A == B and B != C:
    print('Yes')
elif A == C and A != B:
    print('Yes')
else:
    print('No')
A,B,C=map(int,input().split())
if(A==B or B==C or C==A):
  print("YES")
else:
  print("NO")
a,b,c=map(int,input().split())
l=[]
l.append(a)
l.append(b)
l.append(c)

a=set(l)
if len(a)==1:
  print('Yes')
else :
  print('No')
a,b,c = map(str,input().split())

if a == b == c:
    print("Yes")
else:
    print("No")
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")
a,b,c=list(map(int ,input().split()))
if(a==b or b==c or c==a):
  print("Yes")
elif(a==b==c):
  print("No")
else:
  print("No")
A, B, C= map(int, input().split())
count = 0 
    
if A==B:
    if A!=C and C!=B:
        print('Yes')
    else:
        print('No')
if A==C:
    if A!=B and C!=B:
        print('Yes')
    else:
        print('No')
if C==B:
    if A!=C and A!=B:
        print('Yes')
    else:
        print('No')
inp_str = input()
a = int(inp_str[0])
b = int(inp_str[2])
c = int(inp_str[4])
if (a == b or a == c or b == c) and not a == b == c:
    print('YES')
else:
    print('NO')
a,b,c=map(int,input().split())
print('No' if a==b and b==c and c==a else 'Yes')
v = list(map(int,input().split()))
flag = True
flag = flag or max(v) != min(v)
for i in v:
  if max(v) != i and min(v) != i: flag = False
print("Yes" if flag else "No")
a, b, c = map(int, input().split())
if (a == c or a == b):
    print("Yes")
else:
    print("No")
a,b,c=input().split()
print("No" if a==b==c else "Yes")
L = list(map(int,input().split()))
A = L[0]
B = L[1]
C = L[2]
if A == B == C or A != B != C:
    print('No')
else:
    print('Yes')
set1 = set(map(str, input().split()))

if len(set1) == 3 & len(set1) == 1:
    print("No")
else:
    print("Yes")
L = list(map(int,input().split()))
L = set(L)
if len(L) == 2:
    print('YES')
else:
    print('NO')
a, b, c =map(int,input().split())
if a==b:
    if a!= c:
        print("Yes")
    else:
        print("No")
else:
    if a!= c:
        print("No")
    else:
        print("Yes")
a,b,c=map(int,input().split())
print('No' if a==b==c else 'Yes')
a, b, c = [int(x) for x in input().split()]
print(["Yes", "No"][sum([a, b, c]) % 3 == 0 ])
A,B,C=map(int,input().split())
if A==B and A!=C:
	print("Yes")
else:
	print("No")
lis = list(input().split())
a=lis.count(lis[0])
b=lis.count(lis[1])
c=lis.count(lis[2])
print(a, b, c)
if a+b+c == 5:
    print("Yes")
else:
    print("No")
a,b,c = map(int,input().split())

s = set([a, b, c])
if (len(s) == 3):
    print("No")
else:
    print("Yes")
a,b,c=map(int,input().split())
if (a==b or b==c or c==a) and a!=b!=c  :
    print("Yes")
else :
    print("No")
ary = input().split(" ")
a = ary[0]
b = ary[1]
c = ary[2]

if a == b == c or a!= b != c :
  print("No")
else :
  print("Yes")
from collections import defaultdict, deque
import sys
import heapq
import bisect
import itertools
import queue
import copy
import time
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7

def inp(): return int(sys.stdin.readline())

def inpl(): return list(map(int, sys.stdin.readline().split()))

def inpl_str(): return list(sys.stdin.readline().split())

s = inpl()
if len(set(s)) == 2:
    print('No') 
else:
    print('Yes')
a, b, c = map(int, input().split())
 
count = 1
if a==b:
  count+=1
elif a==c:
  count+=1
elif b==c:
  count+=1
 
if count == 1:
  print('Yes')
else:
  print('No')
a,b,c = list(map(int, input().split()))

if(a==b and a!=c) or (a==c and a!=b) or (c==b and a!=c):
    print("yes")
else:
    print("no")
nums= input().split()

nums.sort()
for i in range(len(nums)):
    nums[i] = int(nums[i])
    


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 = list(map(int, input().split()))
a.sort()
if a[0] == a[1] and a[1] != a[2]:
  print('Yes')
elif a[1]==a[2] and a[2]!=a[1]:
  print('Yes')
elif a[2]==a[0] and a[0]!=a[1]:
  print('Yes')
else:
  print('No')
A,B,C=map(int,input().split())

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

flag = False
for i in range(0 , 3):
    for j in range(1 , 3):
        if i<j:
            if(A[i]==A[j]):
                flag = not flag

if(flag):
    ans = 'Yes'
else:
    ans = 'No'

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

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

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

if __name__ == "__main__":
    main()
def main():
    A, B, C = map(int, input().split())
    if A == B:
        if B==C:
            if C==A:
                print('No')
            else:
                print("Yes")
        else:
            print('Yes')
    else:
        print('Yes')

main()
a,b,c = map(int, input().split())
n = (a + b + c)/3

if n == a:
    print('No')
else :
    print('Yes')
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 = input()

A, B, C = x.split(' ')

count = 0
if A == B:
    count += 1
if B == C:
    count += 1
if count == 1:
    print('yes')
else:
    if A == C:
        print('yes')
    else:
        print('no')
a,b,c=input().split()
ans="Yes"
if a!=b and b!=c:
  ans="No"
if a==b==c:
  ans="No"
a,b,c = map(int, input().split(" "))
t = a ^ b ^ c
if t is not 0:
  print("Yes")
else:
  print("No")
#At coder 2020/2/16 A

# スペース区切りの数の入力
A,B,C= input().split()
#A, B = map(int,input().split())
#U=input()

if A==B:
    if A==C:
        U='No'
    else:
        U='Yes'
else:
    if A==C:
        U='Yes'
    else:
        U='No'

print(U)
[a,b,c] = [int(i) for i in input().split()]
if a == b and b == c:
    print("No")
else:
    print("Yes")
a = list(map(int,input().split()))
ans = "No"
 
if a[0] == a[1] and a[0] == a[2]:
  ans = "Yes"
  
print(ans)
a,b,c = list(map(int, input().strip().split()))

if a==b==c :
  print('No')
elif a==b or a==c:
  print('Yes')
else:
  print('No')
a, b, c = map(int,input().split())
lst = [a,b,c]
if sorted(lst) == lst:
  print('No')
if len(sorted(lst)) == 1 or []:
  print('No')
else:
  print('Yes')
import collections
a = input().split()
c = list(collections.Counter(a).values())
b = 0
print(c)
for k in c:
  b += 1
  if k == 2:
    print("Yes")
    break
  elif b == 3:
    print("No")
  elif k == 3:
    print("No")
A, B, C = map(int, input().split())

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

if A==B==C:
    print('No')
else:
    if A==B:
        if B!=C:
            print('Yes')
    if A==C:
        if C!=B:
            print('Yes')
    if B==C:
        if C!=A:
            print('Yes')
    else:
        print('No')
l = list(map(int,input().split()))
l.sort()
if (l[0]==l[1] and l[1]) != l[2] or (l[0] != l[1] and l[1]==l[2]):
  print('Yes')
else:
  print('No')
list_num = list(map(int, input().split()))
x = list_num[0]
y = list_num[1]
z = list_num[2]

if (x == y and x != z) or (x == z and x != y):
  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')
i=list(map(int, input().split()))
 
if i[0]==i[1] | i[0]==i[2] | i[1]==i[2]:
	if i[0]==i[1] & i[0]==i[2]:
		print('No')
	else:
		print('Yes')
else:
    print('No')
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 == c ) or (a != b != c )):
            print("No")
else:       
            print("Yes")
lst=input().split()
if  lst[0]==lst[1]:
    if lst[0]!=lst[2]:
        print("Yes")
    else:
        print("No")
elif lst[0]==lst[2]:
    print("Yes")
else:
    print("No")
def main():
    a, b, c = map(int, input().split())
    if a == b == c:
        print('No')
    elif a != b != c:
        print('No')
    else:
        print('Yes')
        
if __name__ == '__main__':
    main()
a,b,c=map(int,input().split())

if a==b and a==c :
    print("Yes")
else:
    print('No')
n = input().split()
n= [int(i) for i in n]
n.sort()


if n[1] == n[0]:
  if n[2]== n[1]:
    print("No")
    
elif n[2] == n[1]: print("Yes")
else: print("No")
L=list(map(int,input().split()))
if len(L)==2:
  print("Yes")
else:
  print("No")
A,B,C = map(int, input().split())


if A==B & B==C & C==A:
    print('NO')

elif A!=B & B!=C & C!=A:
    print('NO')

else:
    print('YES')
a,b,c=(int(x) for x in input().split())

if a==b==c:
    print("No")
else:
    print("Yes")
hoge = input().split()
 
if hoge[0] == hoge[1]:
  if hoge[1] == hoge[2]:
    print("No")
  else :
    print("Yes")
    
else:
  if hoge[1] == hoge[2]:
    print("Yes")
  else:
    print("No")
Input_ar = list(map(int,input().split()))

min_num = min(Input_ar)

if Input_ar.count(min_num)==2:
  print("Yes")
else:
  print("No")
s = list(map(int, input().split()))
if s[0] == s[1] and s[2]!=s[0]:
    print('yes')
elif s[0] == s[2] and s[1]!=s[0]:
    print('yes')
elif s[1] == s[2] and s[1]!=s[0]:
    print('yes')
else:
    print('no')
def main():
    A, B, C = input().split()
    print(A,B,C)
    if A == B and B == C:
        print("No")
    else:
        print("Yes")

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

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

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  # ignore trailing spaces

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

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

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

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


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

if s[0] == s[1] == s[2]: 
	print("No1")
elif s[0] != s[1] != s[2] != s[0]:
	print("No2")
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")
arr=list(map(int,input().split()))
cnt=0
if(arr[0]==arr[1] and arr[1]!=arr[0]):
  print("Yes")
elif(arr[1]==arr[2] and arr[1]!=arr[0]):
  print("Yes")
elif(arr[0]==arr[2] and arr[1]!=arr[0]):
  print("Yes")
else:
  print("No")
from sys import stdin

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

if (a == b or b == c or c == b) and not (a == b == c):
    print("Yes")
else:
    print("No")
A , B, C = map(int, input().split())
L = [A,B,C]
if not len(set(L)) == 2:
    print("Yes")
else:
    print("No")
num = [int(num) for num in input().split()]
if num[0] == num[1]:
    if num[1] != num[2]:
        print('Yes')
    else:
        print('No')
elif num[0] == num[2]:
    if num[1] != num[2]:
        print('Yes')
    else:
        print('No')
elif num[1] == num[2]:
    if num[0] != num[1]:
        print('Yes')
    else:
        print('No')
li = list(map(int, input().split()))
if (len(li)) == 2:
    print("Yes")
else:
    print("No")
a,b,c=map(int,input().split())
if a==b==c:
  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:
    print('Yes')
else: print('No')
a = list(map(int,input().split()))
a.sort()
if a[0] == a[1]:
	if a[1] == a[2]:
		print("NO")
	else:
		print("YES")
else:
	if a[1] == a[2]:
		print("YES")
	else:
		print("NO")
a,b,c = map(int,input().split())
print("YES" if a == b or b == c or c == a else "NO")
a,b,c = map(int, input().split())
if a==b==c:
  print('No')
elif len({a,b,c}) != 1:
  print('Yes')
else:
  print('No')
s = list(map(int, input().split()))
if len(s)==3:
  if s[0] == s[1] and s[2]!=s[0]:
      print('yes')
  elif s[0] == s[2] and s[1]!=s[0]:
      print('yes')
  elif s[1] == s[2] and s[0]!=s[1]:
      print('yes')
  else:
      print('no')
a, b, c = map(int, input().split())
if a==b or b==c or c==a:
  print("Yes")
else:
  print("No")
a=list(map(int,input().split()))
a.sort()
if (a[0]==a[1] and a[1]!=a[2]):
  print("YES")
else:
  print("NO")
A,B,C = map(int,input().split())
if A == B or B == C or C == A:
    print("Yes")
else:
    print("No")
A, B, C = [int(_) for _ in input().split()]
if A == B:
    if A == C:
        print("No")
    else:
        print("Yes")
else:
    if B == C:
        print("Yes")
    else:
        print("No")
ABC = input().split()

A = ABC[0]
B = ABC[1]
C = ABC[2]

if A==B:
	if B==C:
		print("No")
	else:
		print("Yes")
	exit()

if B==C:
	if A==C:
		print("No")
	else:
		print("Yes")
	exit()

if A==C:
	if B==C:
		print("No")
	else:
		print("Yes")
	exit()
A,B,C = map(str,input().split())
if A == B == C and A != B != C:
  print('No')
else:
  print('Yes')
a,b,c=map(int,input().split())
if a==b or b==c or c==a :
    print("Yes")
else :
    print("No")
x=[int(a) for a in input().split()]
x.sort()
if x[0]==[1] or x[0]==x[2]:
  if x[1]!=x[2]: print("Yes")
  else: print("No")
a,b,c=map(int,input().split())
if a==b==c or a!=b!=c:
  print("Yes")
else:
  print("No")
from collections import Counter

A, B, C = map(int, input().split())

L = []
L.append(A)
L.append(B)
L.append(C)

c = Counter(L)

if max(c.values()):
    print("Yes")
else:
    print("No")
A, B, C= map(int, input().split())
count = 0 
    
if A==B:
    if A!=C and C!=B:
        print('Yes')
    else:
        print('No')
if A==C:
    if A!=B and C!=B:
        print('Yes')
    else:
        print('No')
if C==B:
    if A!=C and A!=B:
        print('Yes')
    else:
        print('No')
if A!=B and B!=C:
    print('No')
on= input()
 
if (on[0] != on[1]and on[0] != on[2] and on[2] != on[1]):
    print("No")
  
else:
  print("Yes")
 #omfg
 #too difficult
import sys

def main():

    # sys.stdin = open('input155a.txt')

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

    answer = check(a, b, c)
    print(answer)

def check(a, b, c):

    for _ in range(3):
        a, b, c = b, c, a
        if a == b and b != c:
            return 'True'

    return 'False'


if __name__ == '__main__':
    main()
X,Y,Z = map(int,input().split())
if(X == Y):
    if(Y == Z):
        print("No")
    else:
        print("Yes")
else:
    print("Yes")
ABC = set(input().split())
print('yes' if len(ABC) == 2 else 'No')
lst = list(map(int, input().split()))
lst.sort()
if lst[0] == lst[1] and lst[0] != lst[2]:
    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:
  if a==c:
    print("No")
  else:
    print("Yes")
else:
  if a!=b & a!=c:
    print("No")
  else:
    print("Yes")
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")
l=list(map(int,input().split()))
l.sort()
if set(l)==2:
	print("Yes")
else:
	print("No")
A,B,C = input().split()
#if int(A) == int(B) and int(A) != int(C) and int(B) != int(C):
#    print("Yes")
#if int(A) == int(C) and int(A) != int(B) and int(B) != int(C):
if int(A) != int(B) and int(A) != int(C)and int(B) != int(C):
    print("No")
if int(A) == int(B) == int(C):
    print("No")
else:
    print("Yes")
nums = input().rstrip().split(" ")
n1 = int(nums[0])
n2 = int(nums[1])
n3 = int(nums[2])
if n1 == n2 and n2 == n3:
  print("No")
elif n1 != n2 and n2 != n3:
  print("No")
else:
  print("Yes")