import sys


def main():
    input = sys.stdin.buffer.readline
    a, b, c = map(int, input().split())
    if len(set([a, b, c])) == 2:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main() import sys sys def main():
    input = sys.stdin.buffer.readline
    a, b, c = map(int, input().split())
    if len(set([a, b, c])) == 2:
        print("Yes")
    else:
        print("No") main input = sys.stdin.buffer.readline input sys.stdin.buffer.readline sys.stdin.buffer sys.stdin sys stdin buffer readline 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:
        print("Yes")
    else:
        print("No") len(set([a, b, c])) == 2 len(set([a, b, c])) len set([a, b, c]) set [a, b, c] a b c 2 print("Yes") print "Yes" print("No") print "No" if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    input = sys.stdin.buffer.readline
    a, b, c = map(int, input().split())
    if len(set([a, b, c])) == 2:
        print("Yes")
    else:
        print("No") def main():
    input = sys.stdin.buffer.readline
    a, b, c = map(int, input().split())
    if len(set([a, b, c])) == 2:
        print("Yes")
    else:
        print("No") main
import sys


def main():
    input = sys.stdin.buffer.readline
    a, b, c = map(int, input().split())
    if len(set([a, b, c])) == 2:
        print("Yes")
    else:
        print("No")


if __name__ == "__main__":
    main()
