def main():

    A, B, C = map(int, input().split())
    if len(set([A, B, C])) == 2:
        return "Yes"
    return "No"

if __name__ == '__main__':
    print(main()) def main():

    A, B, C = map(int, input().split())
    if len(set([A, B, C])) == 2:
        return "Yes"
    return "No" main A, B, C = map(int, input().split()) A map(int, input().split()) map int input().split() ().split () input split B C if len(set([A, B, C])) == 2:
        return "Yes"
     len(set([A, B, C])) == 2 len(set([A, B, C])) len set([A, B, C]) set [A, B, C] A B C 2 return "Yes" "Yes" return "No" "No" if __name__ == '__main__':
    print(main()) __name__ == '__main__' __name__ '__main__' print(main()) print main() main def main():

    A, B, C = map(int, input().split())
    if len(set([A, B, C])) == 2:
        return "Yes"
    return "No" def main():

    A, B, C = map(int, input().split())
    if len(set([A, B, C])) == 2:
        return "Yes"
    return "No" main
def main():

    A, B, C = map(int, input().split())
    if len(set([A, B, C])) == 2:
        return "Yes"
    return "No"

if __name__ == '__main__':
    print(main())
