#

import sys
input=sys.stdin.readline

def main():
    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")
    
    
    
if __name__=="__main__":
    main() import sys sys input=sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline def main():
    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")
    
    
     main A,B,C=map(int,input().split()) A map(int,input().split()) map int input().split() ().split () input split B C if (A==B or B==C or C==A) and not A==B==C:
        print("Yes")
    else:
        print("No")
    
    
     (A==B or B==C or C==A) and not A==B==C A==B or B==C or C==A A==B or B==C A==B A B B==C B C C==A C A not A==B==C A==B==C A==B A B C print("Yes") print "Yes" print("No") print "No" if __name__=="__main__":
    main() __name__=="__main__" __name__ "__main__" main() main def main():
    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")
    
    
     def main():
    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")
    
    
     main input=sys.stdin.readline sys.stdin.readline input
#

import sys
input=sys.stdin.readline

def main():
    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")
    
    
    
if __name__=="__main__":
    main()
