#import sys
#import numpy as np
#from collections import defaultdict
#import math
#from collections import deque

#input = sys.stdin.readline
#import decimal

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

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

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

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

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

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

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

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

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

    print("No") main
#import sys
#import numpy as np
#from collections import defaultdict
#import math
#from collections import deque

#input = sys.stdin.readline
#import decimal

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

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

    print("No")
if __name__ == "__main__":
    main()