a,b=map(int, input().split())

if a<=5:
    ans=0

elif 6<=a<=12:
    ans=b//2
    
else:
    ans=b
    
print(ans) a,b=map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b if a<=5:
    ans=0

elif 6<=a<=12:
    ans=b//2
    
else:
    ans=b
     a<=5 a 5 ans=0 ans 0 elif 6<=a<=12:
    ans=b//2
     6<=a<=12 6<=a 6 a 12 ans=b//2 ans b//2 b 2 ans=b ans b print(ans) print ans a,b=map(int, input().split()) map(int, input().split()) a b=map(int, input().split()) map(int, input().split()) b ans=0 0 ans ans=b//2 b//2 ans ans=b b ans
a,b=map(int, input().split())

if a<=5:
    ans=0

elif 6<=a<=12:
    ans=b//2
    
else:
    ans=b
    
print(ans)