A,B = (int(x) for x in input().split())
if A<=5: print(0)
elif 6<=A<=12: print(B//2)
elif A>=13: print(B) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x A,B = (int(x) for x in input().split()) A (int(x) for x in input().split()) B if A<=5: print(0)
elif 6<=A<=12: print(B//2)
elif A>=13: print(B) A<=5 A 5 elif 6<=A<=12: print(B//2) 6<=A<=12 6<=A 6 A 12 elif A>=13: print(B) A>=13 A 13 B = (int(x) for x in input().split()) (int(x) for x in input().split()) B A,B = (int(x) for x in input().split()) (int(x) for x in input().split()) A
A,B = (int(x) for x in input().split())
if A<=5: print(0)
elif 6<=A<=12: print(B//2)
elif A>=13: print(B)