function Main(input) {
  var inp = input.split("\n");
  var tmp = input[0].split(" ");
  var A = parseInt(tmp[0]);
  var B = parseInt(tmp[1]);
  var S = inp;
  var result = null;
  if (S = A.length + "-" + B.length) {
    result = 'Yes';
  } else {
    result = 'No';
  }
  console.log(result);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
