function Main(input) {
	var str = input;
	str = str.split("\n");
	var s = str[0];
	var t = str[1];
	var ans = "";
	//str = str.split(" ");
   	for(var i = 0; i <= s; i++){
	if(s !== t){
		 ans = "No";
		 break;
		}
   }
   if (ans === "")
   {
   	ans ="Yes";
   }
   console.log(ans);
}
 //*おまじない
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
