object Main extends App {
	val sc = new java.util.Scanner(System.in)
	val pw = new java.io.PrintWriter(System.out)

	val a, b, c = sc.nextInt
	
	pw.println(if (Seq(a, b, c).distinct.size == 2) "Yes" else "No")
	pw.flush()
}