A, B = [int(n) for n in input().split()]
print(B if A>=13 else B//2 if 6<=A<=12 else 0) int(n) for n in input().split() for n in input().split() n input().split() ().split () input split for n in input().split() int(n) int n A, B = [int(n) for n in input().split()] A [int(n) for n in input().split()] B print(B if A>=13 else B//2 if 6<=A<=12 else 0) print B if A>=13 else B//2 if 6<=A<=12 else 0 A>=13 A 13 B B//2 if 6<=A<=12 else 0 6<=A<=12 6<=A 6 A 12 B//2 B 2 0 A, B = [int(n) for n in input().split()] [int(n) for n in input().split()] A B = [int(n) for n in input().split()] [int(n) for n in input().split()] B
A, B = [int(n) for n in input().split()]
print(B if A>=13 else B//2 if 6<=A<=12 else 0)
