abc = input().split()

if (len(set(abc)) == 2):
    print("Yes")
else:
    print("No") abc = input().split() abc input().split() ().split () input split if (len(set(abc)) == 2):
    print("Yes")
else:
    print("No") len(set(abc)) == 2 len(set(abc)) len set(abc) set abc 2 print("Yes") print "Yes" print("No") print "No" abc = input().split() input().split() abc
abc = input().split()

if (len(set(abc)) == 2):
    print("Yes")
else:
    print("No")