a, b, c = [int(i) for i in input().split(" ")]
 
ab = a == b
bc = b == c
ca = c == a
 
cnt = 0
for r in [ab, bc, ca]:
  if r:
    cnt += 1

if cnt == 1:
  print("Yes")
else:
  print("No") int(i) for i in input().split(" ") for i in input().split(" ") i input().split(" ") ().split () input split " " for i in input().split(" ") int(i) int i a, b, c = [int(i) for i in input().split(" ")] a [int(i) for i in input().split(" ")] b c ab = a == b ab a == b a b bc = b == c bc b == c b c ca = c == a ca c == a c a cnt = 0 cnt 0 for r in [ab, bc, ca]:
  if r:
    cnt += 1 r [ab, bc, ca] ab bc ca if r:
    cnt += 1 r cnt += 1 cnt 1 if cnt == 1:
  print("Yes")
else:
  print("No") cnt == 1 cnt 1 print("Yes") print "Yes" print("No") print "No" bc = b == c b == c bc a, b, c = [int(i) for i in input().split(" ")] [int(i) for i in input().split(" ")] a cnt += 1 1 cnt cnt = 0 0 cnt b, c = [int(i) for i in input().split(" ")] [int(i) for i in input().split(" ")] b c = [int(i) for i in input().split(" ")] [int(i) for i in input().split(" ")] c ca = c == a c == a ca ab = a == b a == b ab
a, b, c = [int(i) for i in input().split(" ")]
 
ab = a == b
bc = b == c
ca = c == a
 
cnt = 0
for r in [ab, bc, ca]:
  if r:
    cnt += 1

if cnt == 1:
  print("Yes")
else:
  print("No")