a, b = [int(i) for i in input().split()]
if a >= 13: print(b)
elif a >= 6: print(b // 2)
else: print(0) int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i a, b = [int(i) for i in input().split()] a [int(i) for i in input().split()] b if a >= 13: print(b)
elif a >= 6: print(b // 2)
else: print(0) a >= 13 a 13 elif a >= 6: print(b // 2) a >= 6 a 6 b = [int(i) for i in input().split()] [int(i) for i in input().split()] b a, b = [int(i) for i in input().split()] [int(i) for i in input().split()] a
a, b = [int(i) for i in input().split()]
if a >= 13: print(b)
elif a >= 6: print(b // 2)
else: print(0)