function Main(input){
 
input = input.split(" ");

const num  = parseInt(input[0], 10);
	const total= parseInt(input[1], 10);
 

console.log(num * 500 > total);
 
}
 
Main(require("fs").readFileSync("/dev/stdin", "utf8"));