import bisect,collections,copy,heapq,itertools,math,numpy,string
import sys
sys.setrecursionlimit(10**7)

def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())

def main():
    A,B,C = LI()
    print("Yes" if ((A==B and B!=C) or (B==C and C!=A) or (C==A and A!=B)) else "No")

main()
 import bisect,collections,copy,heapq,itertools,math,numpy,string bisect collections copy heapq itertools math numpy string import sys sys sys.setrecursionlimit(10**7) sys.setrecursionlimit sys setrecursionlimit 10**7 10 7 def S(): return sys.stdin.readline().rstrip() S def I(): return int(sys.stdin.readline().rstrip()) I def LI(): return list(map(int,sys.stdin.readline().rstrip().split())) LI def LS(): return list(sys.stdin.readline().rstrip().split()) LS def main():
    A,B,C = LI()
    print("Yes" if ((A==B and B!=C) or (B==C and C!=A) or (C==A and A!=B)) else "No") main A,B,C = LI() A LI() LI B C print("Yes" if ((A==B and B!=C) or (B==C and C!=A) or (C==A and A!=B)) else "No") print "Yes" if ((A==B and B!=C) or (B==C and C!=A) or (C==A and A!=B)) else "No" (A==B and B!=C) or (B==C and C!=A) or (C==A and A!=B) (A==B and B!=C) or (B==C and C!=A) A==B and B!=C A==B A B B!=C B C B==C and C!=A B==C B C C!=A C A C==A and A!=B C==A C A A!=B A B "Yes" "No" main() main def LI(): return list(map(int,sys.stdin.readline().rstrip().split())) def LI(): return list(map(int,sys.stdin.readline().rstrip().split())) LI def main():
    A,B,C = LI()
    print("Yes" if ((A==B and B!=C) or (B==C and C!=A) or (C==A and A!=B)) else "No") def main():
    A,B,C = LI()
    print("Yes" if ((A==B and B!=C) or (B==C and C!=A) or (C==A and A!=B)) else "No") main def S(): return sys.stdin.readline().rstrip() def S(): return sys.stdin.readline().rstrip() S def LS(): return list(sys.stdin.readline().rstrip().split()) def LS(): return list(sys.stdin.readline().rstrip().split()) LS def I(): return int(sys.stdin.readline().rstrip()) def I(): return int(sys.stdin.readline().rstrip()) I
import bisect,collections,copy,heapq,itertools,math,numpy,string
import sys
sys.setrecursionlimit(10**7)

def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())

def main():
    A,B,C = LI()
    print("Yes" if ((A==B and B!=C) or (B==C and C!=A) or (C==A and A!=B)) else "No")

main()

