function Main(input) {
input = input.split(" ");
  var n = parseInt(args[0], 10);
  var m = parseInt(args[1], 10);

  if(n == m){
console.log("YES");
}else{
console.log("NO");
}

}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));