object Main extends App {
	val Array(a, b, c) = scala.io.StdIn.readLine.split(" ").map(_.toInt)

	if(a==b && a!=c) println("Yes")
	else if(a==c && a!=b) println("Yes")
	else if(b==c && a!=b) println("Yes")
	else println("No")
}