peterverebics/CodeNet_Python_118 huggingface dataset:
a = list(input().split())
print("Yes" if len(set(a)) == 2 else "No")
print "Yes" if len(set(raw_input().split()))==2 else "No"
def main():
    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')


if __name__ == "__main__":
    main()
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())
count = 0
if a==b:
  count = count + 1
if b==c:
  count = count + 1
if c==a:
  count = count + 1
if count == 1:
  print("Yes")
else:
  print("No")
a, b, c  = map(int, input().split())
abc = len(set([a, b, c]))

if ( abc == 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')
#!/usr/bin/env python
# coding: utf-8

def ri():
    return int(input())

def rl():
    return list(input().split())

def rli():
    return list(map(int, input().split()))

def kawaisou(a, b, c):
    if a == b and a != c:
        return True
    if a == c and a != b:
        return True
    if b == c and a != b:
        return True
    return False

def main():
    a, b, c = rli()
    if kawaisou(a, b, c):
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()
a,b,c=sorted(list(map(int, input().split())))
print("Yes" if (a==b and b!=c) or (a!=b and b==c) else "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 = map(int, input().split())
if a == b and b == c:
  print("No")
elif a == b:
  print("Yes")
elif b == c:
  print("Yes")
elif a == c:
  print("Yes")
else:
  print("No")
lit = list(input().split())
lit2 = set(lit)
if len(lit2) == 2:
    print("Yes")
else: print("No")
def main():
    a = [int(i) for i in input().split()]

    print("Yes" if len(set(a)) == 2 else "No")



if __name__ == "__main__":
    main()
n = [i for i in input().split()]

n = set(n)

if len(n) == 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 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]) or (a[1]==a[2] and a[1]!=a[0]):
  print("Yes")
else:
  print("No")
data=[int(x) for x in input().split()]
if data.count(data[0])==2 or data.count(data[1])==2:
  print("Yes")
else:
  print("No")
if __name__ == '__main__':
	a,b,c = map(int, input().split())
	l = [b,c]
	if a in l:
		if b == c:
			print('No')
		else:
			print('Yes')
	else:
		if b == c:
			print('Yes')
		else:
			print('No')
A, B, C = input().split()
if C != A == B:
    print("Yes")
elif A != B == C:
    print("Yes")
elif B != C == 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 b != a):
    print("Yes")
else:
    print("No")
a, b, c = map(int, input().split())

if a == b and a != c:
    print('Yes')
elif b == c and b != a:
    print('Yes')
elif c == a and c != b:
    print('Yes')
else:
    print('No')
numbers = set(map(int, input().split()))
if len(numbers) == 2:
    print('Yes')
else:
    print('No')
ri = lambda S: [int(v) for v in S.split()]
def rii(): return ri(input())

A, B, C = rii()

print("Yes" if len(set([A, B, C])) == 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 b==c and c==a:
  print("No")
else:
  print("Yes")
A = input().split()
res = []
for i in A:
  if i not in res:
    res.append(i)

if len(res) == 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 (c==b and a!=c):
  print("Yes")
else:
  print("No")
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")
a=map(int,input().split())
A=list(a)
B=0
if A[0]==A[1]:
 B+=1
if A[1]==A[2]:
 B+=1
if A[0]==A[2]:
 B+=1
if B==1:
 print("Yes")
else:
 print("No")
ABC = set(map(int, input().split()))
print("Yes" if len(ABC) == 2 else "No")
import collections

li = list(map(int,input().split()))

c = collections.Counter(li)

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

a = set([A, B, C])

if len(a) == 2:
    print("Yes")
else:
    print("No")
def main():
    li = list(map(int, input().split()))
    ans = "Yes" if len(set(li)) == 2 else "No"
    print(ans)


if __name__ == "__main__":
    main()
a, b, c = map(int, input().split())

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

print('Yes') if len(set(l))==2 else print('No')
def main():
    a,b,c = map(int, input().split())
    if a == b != c or a != b == c or a == c != b:
        print('Yes')
    else:
        print('No')


if __name__ == "__main__":
    main()
A, B, C = input().split()
if len(set([A, B, C])) == 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")
else:
  print("No")
A = map(int, input().split())
if len(set(A) ) == 2:
    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 A==C:
    print("Yes")
  elif C==B:
    print("Yes")
  else:
    print("No")
nums = list(map(int,input().split()))
poor = False
for n in nums:
  if nums.count(n) == 2:
    poor = True
print("Yes" if poor else "No")
x = list(map(int,input().split(" ")))
a = x[0]
b = x[1]
c = x[2]

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

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

a = abc[0]
b = abc[1]
c = abc[2]

if abc.count(a) == 2 or abc.count(b) == 2 or abc.count(c) == 2:
	print('Yes')
else:
	print('No')
a, b, c = input().split()
set_in = {a, b, c}
if len(set_in) == 2:
    print("Yes")
else:
    print("No")
def main():
    a = set(map(int,input().split()))
    if (len(a)==2):
        print("Yes")
    else:
        print("No")
main()
from collections import Counter, deque, defaultdict
from functools import lru_cache

a,b,c=map(lambda x:int(x),input().split())
if (a==b and b==c ) or (a!=b and b!=c and c !=a):
	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 C != A:
  print('No')
else:
  print('Yes')
A, B, C = map(int,input().split())
if A==B and A!=C and B!=C:
    print("Yes")
elif A==C and A!=B and C!=B:
    print("Yes")
elif B==C and B!=A and C!=A:
    print("Yes")
else:
    print("No")
# -*- coding: utf-8 -*-

l = list(map(int, input().split()))

if len(set(l)) == 2:
    print('Yes')
else:
    print('No')
# ABC 155: A – Poor
n = [int(s) for s in input().split()]
print('Yes' if n.count(n[0]) == 2 or n.count(n[1]) == 2 or n.count(n[2]) == 2 else 'No')
A,B,C= map(int,input().split())
if A == B == C :
    print('No')
elif A == B :
    print('Yes')
elif B == C :
    print('Yes')
elif A == C :
    print('Yes')
else:
    print('No')
a,b,c = map(int,input().split())
if (a==b and a==c and b==c) or (a!=b and b!=c and a!=c):
  print("No")
else:
  print("Yes")
a, b, c = map(int, input().split())

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

if len(set([A, B, C])) == 2:
    print('Yes')
else:
    print('No')
a, b, c = map(int, open(0).read().split())

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

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

n = len(set(l))
if n == 2:
  print("Yes")
else:
  print("No")
a,b,c = map(int, input().split())
if ((a == b ) + (b == c ) + (c==a))==1:
    print('Yes')
else:
    print('No')
A, B, C = input().split()
if A == B == C:
    print('No')
elif A != B and C != B and A != C:
    print('No')     
else:
    print('Yes')
a,b,c = map(int, input().split())
 
if (a == b) and (b !=c):
	print('Yes')
elif (a == c) and (b !=c):
	print('Yes')
elif (b == c) and (a !=c):
	print('Yes')
else:
	print('No')
import sys
a,b,c=map(int,input().split())
if a==b and b!=c:
  print("Yes")
  sys.exit()
elif c==b and b!=a:
  print("Yes")
  sys.exit()
elif a==c and b!=c:
  print("Yes")
  sys.exit()
else:
  print("No")
  sys.exit()
a = map(int, input().split())
if len(set(a)) == 2:
    print('Yes')
else:
    print('No')
x = list(map(int, input().split()))
x = set(x)
if len(x) == 2:
  print('Yes')
else:
  print('No')
lis = list(input().split())
a=lis.count(lis[0])
b=lis.count(lis[1])
c=lis.count(lis[2])
if a+b+c == 5:
    print("Yes")
else:
    print("No")
a = list(map(int, input().split()))
if len(list(set(a))) == 2:
    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("No")
A = input()
arr1 = [i for i in A.split(' ')]
if(arr1[0]==arr1[1]==arr1[2]):
	print('No')
elif((arr1[0]!=arr1[1]) and (arr1[0]!=arr1[2]) and (arr1[1]!=arr1[2])):
	print('No')
else:
	print('Yes')
inputs = [int(x) for x in input().split()]
if len(set(inputs)) == 2:
    print('Yes')
else:
    print('No')
a = list(map(int, input().split()))

s = set(a)

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

if(A == B):
    if(A != C):
        print("Yes")
    else:
        print("No")
else:
    if(A != C):
        if(B == C):
            print("Yes")
        else: print("No")
    else:
        print("Yes")
a,b,c=input().split()
print("Yes" if (a==b or b==c or a==c) and not a==b==c else "No" )
def ii(): return int(input())
def si(): return input()
def mi(): return map(int,input().split())
def li(): return list(mi())

import math 

for i in range(1):
    a,b,c=mi()
    if a==b!=c or b==c!=a or c==a!=b:
        print("Yes")
    else:
        print("No")
A,B,C = list(map(int,input().split()))

if A == B == C:
    print('No')
elif A == B and B != C:
    print('Yes')
elif A != B and A == C:
    print('Yes')
elif A != B and B ==C:
    print('Yes')
elif A != B and A != C:
    print('No')
else:
    print('No')
A, B, C = [int(i) for i in input().split()]

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

tmp_dic = {}
for n in lis:
    if n not in tmp_dic:
        tmp_dic[n] = 1
    else:
        tmp_dic[n] += 1
        
if len(tmp_dic) == 2:
    print("Yes")
else:
    print("No")
a,b,c = map(int, input().split())

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


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

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

if A==B and B==C:
    print("No")
elif A==B:
    print("Yes")
elif B==C:
    print("Yes")
elif A==C:
    print("Yes")
else:
    print("No")
a,b,c = map(int, input().split())
s = {a,b,c}
if len(s) == 2:
    ans = 'Yes'
else:
    ans = 'No'
    
print(ans)
a,b,c=[int(x) for x in 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")
print("Yes" if 2==len(set(list(map(int,input().split())))) else "No")
print('Yes') if len(set([int(i) for i in input().split()])) == 2 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")
nums = list(map(int, input().split()))

if nums.count(nums[0]) == 2 or nums.count(nums[1]) == 2 or nums.count(nums[2]) == 2:
    print("Yes")
else:
    print("No")
A,B,C=input().split()
if A==B and A==C:
    print("No")
elif A!=B and A!=C and B!=C:
    print("No")
else:
    print("Yes")
A = [int(i) for i in input().split()]
if len(set(A)) == 2:print('Yes')
else:print('No')
ABC=list(map(int,input().split()))

if len(set(ABC))==2:
    print("Yes")
else:
    print("No")
a = [int(i) for i in input().split()]
if (a[0] == a[1] and a[0] != a[2]) or (a[0] == a[2] and a[0] != a[1]) or (a[2] == a[1] and a[2] != a[0]):
    print('Yes')
else:
    print('No')
import sys
from collections import *
import heapq
import math
import bisect
from itertools import permutations,accumulate,combinations,product
from fractions import gcd
def input():
    return sys.stdin.readline()[:-1]
mod=pow(10,9)+7

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

if a==b and b!=c:
    print("Yes")
elif b==c and c!=a:
    print("Yes")
elif c==a and a!=b:
    print("Yes")
else:
    print("No")
*X, = map(int, input().split())
if len(set(X)) == 2:
    print('Yes')
else:
    print('No')
N =[int(i) for i in input().split(" ")]
count=0
for j in range(len(N)-1):
    for k in range(j+1,len(N)):
        if N[j]==N[k]:
            count += 1
if count==1:
    print("Yes")
else:
    print("No")
A,B,C =map(int,input().split())
if A == B and A != C:
    print('Yes')
elif B == C and C != A:
    print('Yes')
elif C == A and A != B:
    print('Yes')
else:
    print('No')
A, B, C = input().split()

if A == B and C!=A:
    print("Yes")
elif B==C and A!=B:
    print("Yes")    
elif A==C and B!=A:
    print("Yes")
else:
    print("No")
# coding: utf-8
A,B,C=map(int,input().split())
l=[A,B,C]

if len(set(l))==2:
    print("Yes")
else:
    print("No")
import bisect
import cmath
import heapq
import itertools
import math
import operator
import os
import random
import re
import string
import sys
from collections import Counter, deque, defaultdict
from copy import deepcopy
from decimal import Decimal
from fractions import gcd
from functools import lru_cache, reduce
from operator import itemgetter, mul, add, xor

import numpy as np

if os.getenv("LOCAL"):
    sys.stdin = open("_in.txt", "r")

sys.setrecursionlimit(10 ** 9)
INF = float("inf")
IINF = 10 ** 18
MOD = 10 ** 9 + 7
# MOD = 998244353




A, B, C = list(map(int, sys.stdin.buffer.readline().split()))
ok = len(set([A, B, C])) == 2
if ok:
    print('Yes')
else:
    print('No')
a = set(map(lambda x: int(x), input().split()))

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

if a==b or b==c or c==a:
  if a==b==c:
    print("No")
  else:
    print("Yes")

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

else:
    print("No")
A, B, C = map(int, input().split())

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

if a==b and 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())
print((A==B and B!=C or A==C and C!=B or B==C and B!=A) and "Yes" or "No")
import sys
input = sys.stdin.readline
rs = lambda: input().strip()
ri = lambda: int(input())
rl = lambda: list(map(int, input().split()))
mod = 10**9 + 7

A, B, C = rl()

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

n=set([a,b,c])

if len(n)==2:
  print("Yes")
else:
  print("No")
a = [int(x) for x in input().split()]
a.sort()
if a[0] == a[1] == a[2]: print("No")
elif a[0] == a[1] or a[1] == a[2]: print("Yes")
else: print("No")
a,b,c = map(int,input().split())

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

if a == b :
    if b == c :
        print('No')
    else :
        print('Yes')
elif b == c :
    if b == a :
        print('No')
    else :
        print('Yes')
elif c == a :
    if c == b :
        print('No')
    else :
        print('Yes')
else :
    print('No')
A,B,C=map(int,input().split())
if(((A==B)and((B!=C)or(A!=C)))or((A==C)and((B!=C)or(B!=A))))or((B==C)and((B!=A)or(C!=A))):
  print('Yes')
else:
  print('No')
print('Yes' if len(set(list(map(int,input().split()))))==2 else 'No')
A, B, C = map(int, input().split())
if A==B:
  if A!=C:
    print("Yes")
  else:
    print("No")
else:
  if A==C:
    print("Yes")
  elif B==C:
    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 == c:
                  print("Yes")
                  exit()
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")
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
def gcd(*numbers): reduce(math.gcd, numbers)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7
count = 0
ans = 0
inf = float("inf")

a = l()
a = list(set(a))

if len(a) == 2:
    print("Yes")
else:
    print("No")
S=input().split()
a=int(S[0])
b=int(S[1])
c=int(S[2])

if a==b and b!=c:
    print("Yes")
elif b==c and c!=a:
    print("Yes")
elif c==a and a!=b:
    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())

ans = 'No'
if len(list(set([A,B,C])))==2:
  ans = 'Yes'

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

if a==b and b==c :
    print('No')
elif a==b or a==c or b==c:
    print("Yes")
else:
    print('No')
# -*- coding: utf-8 -*-
A, B, C = map(int, input().split())

if(A == B and B == C):
  print('No')
elif(A == B):
  print('Yes')
elif(B == C):
  print('Yes')
elif(C == A):
  print('Yes')
else:
  print('No')
x,y,z=(input().split(" "))
if z == y:
  if y ==x:
    print("No")
  else:
    print("Yes")
else:
  if z ==x:
    print("Yes")
  else:
    if y == x:
      print("Yes")
    else:
      
      print("No")
A,B,C = map(int,input().split())
D=set()

D.add(A)
D.add(B)
D.add(C)

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

flg = True
if A == B and B == C:
  flg = False
if A != B and B != C and C != A:
  flg = False
  
print("Yes" if flg else "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')
num = list(map(int,input().split()))

count = 0

if num[0] == num[1]:
  count = count + 1

if num[1] == num[2]:
  count = count + 1

if num[2] == num[0]:
  count = count + 1

if count == 1:
  ans = "Yes"
elif count == 0 or count == 3:
  ans = "No"

print(ans)
a,b,c=map(int,input().split())
if a==b:
    if a==c:
        print("No")
    else:
        print("Yes")
elif a==c:
    print("Yes")
elif b==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 A!=B:
    print("Yes")
elif C==B and C!=A:
    print("Yes")
else:
    print("No")
A,B,C=list(map(int,input().split()))
ans=set([A,B,C])
if len(ans)==2:
    print('Yes')
else:
    print('No')
a,b,c = map(int, input().split())
print('Yes' if (a==b and b!=c) or (b==c and c!=a) or (c==a and a!=b) else 'No')
from sys import stdout
printn = lambda x: stdout.write(str(x))
inn = lambda : int(input())
inl   = lambda: list(map(int, input().split()))
inm   = lambda:      map(int, input().split())
ins = lambda : input().strip()
DBG = True # and False
BIG = 999999999
R = 10**9 + 7

def ddprint(x):
  if DBG:
    print(x)

a,b,c = inm()
if a==b and a!=c or a==c and a!=b or b==c and b!=a:
    print('Yes')
else:
    print('No')
# 2020/02/16
# AtCoder Beginner Contest 155 - A

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

# Calc
if a == b:
    if a != c:
        ans = "Yes"
    else:
        ans = "No"
else:
    if a == c or b == c:
        ans = "Yes"
    else:
        ans = "No"

# Output
print(ans)
A = set(map(int,input().split()))
print("Yes" if len(A)==2 else "No")
a,b,c = map(int,input().split())

if len(set([a,b,c])) == 2:
    print("Yes")
else:
    print("No")
N = input()
n = N.split(' ')
A = int(n[0])
B = int(n[1])
C = int(n[2])

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())

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