#!/usr/bin/env python3
import collections as cl
import sys


def II():
    return int(sys.stdin.readline())


def MI():
    return map(int, sys.stdin.readline().split())


def LI():
    return list(map(int, sys.stdin.readline().split()))


def main():
    a, b, c = MI()

    n = set([a, b, c])
    print("Yes" if len(n) == 2 else "No")


main() import collections as cl collections import sys sys def II():
    return int(sys.stdin.readline()) II return int(sys.stdin.readline()) int(sys.stdin.readline()) int sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline def MI():
    return map(int, sys.stdin.readline().split()) MI return map(int, sys.stdin.readline().split()) map(int, sys.stdin.readline().split()) map int sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split def LI():
    return list(map(int, sys.stdin.readline().split())) LI return list(map(int, sys.stdin.readline().split())) list(map(int, sys.stdin.readline().split())) list map(int, sys.stdin.readline().split()) map int sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split def main():
    a, b, c = MI()

    n = set([a, b, c])
    print("Yes" if len(n) == 2 else "No") main a, b, c = MI() a MI() MI b c n = set([a, b, c]) n set([a, b, c]) set [a, b, c] a b c print("Yes" if len(n) == 2 else "No") print "Yes" if len(n) == 2 else "No" len(n) == 2 len(n) len n 2 "Yes" "No" main() main def II():
    return int(sys.stdin.readline()) def II():
    return int(sys.stdin.readline()) II def MI():
    return map(int, sys.stdin.readline().split()) def MI():
    return map(int, sys.stdin.readline().split()) MI def LI():
    return list(map(int, sys.stdin.readline().split())) def LI():
    return list(map(int, sys.stdin.readline().split())) LI def main():
    a, b, c = MI()

    n = set([a, b, c])
    print("Yes" if len(n) == 2 else "No") def main():
    a, b, c = MI()

    n = set([a, b, c])
    print("Yes" if len(n) == 2 else "No") main
#!/usr/bin/env python3
import collections as cl
import sys


def II():
    return int(sys.stdin.readline())


def MI():
    return map(int, sys.stdin.readline().split())


def LI():
    return list(map(int, sys.stdin.readline().split()))


def main():
    a, b, c = MI()

    n = set([a, b, c])
    print("Yes" if len(n) == 2 else "No")


main()
