import std.stdio;
import std.string;

void main() {
  auto ar = readln.chomp.split(" ");
  auto a = ar[0];
  auto b = ar[1];
  auto c = ar[2];
  
  if (a == b && b == c) {
    writeln("No");
    return;
  }
  if (a != b && a != c && b != c) {
    writeln("No");
    return;
  }
  writeln("Yes");
}
