import math
a,b = map(int,input().split())
m = 0
if a >= 13:
    m = b
elif a >= 6 and a <=12:
    m = b / 2
print(math.floor(m)) import math math a,b = map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b m = 0 m 0 if a >= 13:
    m = b
elif a >= 6 and a <=12:
    m = b / 2 a >= 13 a 13 m = b m b elif a >= 6 and a <=12:
    m = b / 2 a >= 6 and a <=12 a >= 6 a 6 a <=12 a 12 m = b / 2 m b / 2 b 2 print(math.floor(m)) print math.floor(m) math.floor math floor m b = map(int,input().split()) map(int,input().split()) b m = 0 0 m m = b b m a,b = map(int,input().split()) map(int,input().split()) a m = b / 2 b / 2 m
import math
a,b = map(int,input().split())
m = 0
if a >= 13:
    m = b
elif a >= 6 and a <=12:
    m = b / 2
print(math.floor(m))