def main():
    s = list(map(int,input().strip().split()))

    if len(set(s)) == 2:
        print("Yes")
    else:
        print("No")
    return
main() def main():
    s = list(map(int,input().strip().split()))

    if len(set(s)) == 2:
        print("Yes")
    else:
        print("No")
    return main s = list(map(int,input().strip().split())) s list(map(int,input().strip().split())) list map(int,input().strip().split()) map int input().strip().split() ().strip().split ().strip() ().strip () input strip split if len(set(s)) == 2:
        print("Yes")
    else:
        print("No")
     len(set(s)) == 2 len(set(s)) len set(s) set s 2 print("Yes") print "Yes" print("No") print "No" return main() main def main():
    s = list(map(int,input().strip().split()))

    if len(set(s)) == 2:
        print("Yes")
    else:
        print("No")
    return def main():
    s = list(map(int,input().strip().split()))

    if len(set(s)) == 2:
        print("Yes")
    else:
        print("No")
    return main
def main():
    s = list(map(int,input().strip().split()))

    if len(set(s)) == 2:
        print("Yes")
    else:
        print("No")
    return
main()
