import sys
input = sys.stdin.readline

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

a,b=MI()
if a>=13:
    price=b
elif 6<=a<=12:
    price=int(b/2)
else:
    price=0
print(price) import sys sys input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline def I(): return int(input()) I def MI(): return map(int, input().split()) MI def LI(): return list(map(int, input().split())) LI a,b=MI() a MI() MI b if a>=13:
    price=b
elif 6<=a<=12:
    price=int(b/2)
else:
    price=0 a>=13 a 13 price=b price b elif 6<=a<=12:
    price=int(b/2) 6<=a<=12 6<=a 6 a 12 price=int(b/2) price int(b/2) int b/2 b 2 price=0 price 0 print(price) print price price=b b price b=MI() MI() b def MI(): return map(int, input().split()) def MI(): return map(int, input().split()) MI a,b=MI() MI() a def I(): return int(input()) def I(): return int(input()) I price=0 0 price def LI(): return list(map(int, input().split())) def LI(): return list(map(int, input().split())) LI input = sys.stdin.readline sys.stdin.readline input price=int(b/2) int(b/2) price
import sys
input = sys.stdin.readline

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

a,b=MI()
if a>=13:
    price=b
elif 6<=a<=12:
    price=int(b/2)
else:
    price=0
print(price)