function Main(input) {
	input = input.split(" ");
	var A = parseInt(input[0], 10);
	var B = parseInt(input[1], 10);
  
	  if(13<A<100) {
  			console.log(B);
 	 } else if (6<=A<=12){
  			console.log(B/2);           
     } else {
  			console.log(0);
 	 }
}

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