function Main(input) {
	input = input.split(" ");
  var A = parseInt(input[0]);
  var B = parseInt(input[1]);
  var result;

  if(13<=A && A<=100) {
    result = B;
  } else if (6<=A && A<=12){
    result = B/2;           
  } else if (0<=A && A<=5) {
    result = 0;
  }
	
  console.log(result);
}


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