import Control.Applicative

main :: IO ()
main = solve <$> f >>= print
  where
    f = map read <$> words <$> getLine

solve :: [Int] -> Int
solve [a, b]
  | a >= 13 = b
  | a >= 6 = b `div` 2
  | otherwise = 0
