let () =
    let main () =
        let a, b = Scanf.sscanf (read_line ()) "%d %d" (fun a b -> a, b) in
        Printf.printf "%d\n" (if a >= 13 then b else if a >= 6 then b / 2 else 0)
    in
    main ()