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

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

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