x,y=map(int,input().split())
if x<=5:print(0)
elif x<=12:print(y//2)
else:print(y) x,y=map(int,input().split()) x map(int,input().split()) map int input().split() ().split () input split y if x<=5:print(0)
elif x<=12:print(y//2)
else:print(y) x<=5 x 5 elif x<=12:print(y//2) x<=12 x 12 y=map(int,input().split()) map(int,input().split()) y x,y=map(int,input().split()) map(int,input().split()) x
x,y=map(int,input().split())
if x<=5:print(0)
elif x<=12:print(y//2)
else:print(y)