open System

let calc (a: int) (b: int): int =
    if a >= 13 then b else b / 2

[<EntryPoint>]
let main _ =
    let input = Console.ReadLine()
    let [|a; b|] = input.Split(' ') |> Array.map Int32.Parse
    printfn "%d" <| calc a b
    0
