a,b=map(int,input().split());print(b//2 if 6<=a<=12 else [0,b][a>12]) a,b=map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b print(b//2 if 6<=a<=12 else [0,b][a>12]) print b//2 if 6<=a<=12 else [0,b][a>12] 6<=a<=12 6<=a 6 a 12 b//2 b 2 [0,b][a>12] [0,b] 0 b a>12 a 12 a,b=map(int,input().split()) map(int,input().split()) a b=map(int,input().split()) map(int,input().split()) b
a,b=map(int,input().split());print(b//2 if 6<=a<=12 else [0,b][a>12])