'use strict'
function Main(input) {
    input = input.split("\n")[0].split(' ').map(str => parseInt(str))

    const A = input[0]
    const B = input[1]

    let result = 0
    if(A >= 13){
      result = B
    }else if(A >= 6){
      result = B / 2
    }
    
    console.log(result)
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"))