//あってるか分からないけどひとまずテスト

import Foundation

var input_lines = [String]()
let row = 2
for i in 0..<row {
    input_lines.append(readLine()!)
}

let a = Int(input_lines[0])!
let b = Int(input_lines[1])!
//let a = Int(split[0])!
//let b = Int(split[1])!

if a >= 13{
    print(b)
}else if a < 13 && a >= 6{
    print(b/2)
}else{
    print("0")
}