import std.stdio, std.conv, std.string, std.algorithm,
       std.math, std.array, std.container, std.typecons;

void main() {
  int[] abc = readln.chomp.split.to!(int[]);
  if(abc[0]!=abc[1]&&abc[1]==abc[2] ||
     abc[0]!=abc[1]&&abc[0]==abc[2] ||
     abc[0]==abc[1]&&abc[1]!=abc[2]) writeln("Yes");
  else writeln("No");
}

