a, b = [int(x) for x in input().split()]
print(b if a >= 13 else b // 2 if 6 <= a <= 12 else 0) 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 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(x) for x in input().split()] [int(x) for x in input().split()] a 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()]
print(b if a >= 13 else b // 2 if 6 <= a <= 12 else 0)