import math
def ip():return int(input())
def inp():return map(int,input().split())
def linp():return list(map(int,input().split()))

a,b=inp()
if a>=13:print(b)
elif a<=5:print(0)
else:print(b//2) import math math def ip():return int(input()) ip def inp():return map(int,input().split()) inp def linp():return list(map(int,input().split())) linp a,b=inp() a inp() inp b if a>=13:print(b)
elif a<=5:print(0)
else:print(b//2) a>=13 a 13 elif a<=5:print(0) a<=5 a 5 def inp():return map(int,input().split()) def inp():return map(int,input().split()) inp b=inp() inp() b def ip():return int(input()) def ip():return int(input()) ip def linp():return list(map(int,input().split())) def linp():return list(map(int,input().split())) linp a,b=inp() inp() a
import math
def ip():return int(input())
def inp():return map(int,input().split())
def linp():return list(map(int,input().split()))

a,b=inp()
if a>=13:print(b)
elif a<=5:print(0)
else:print(b//2)