a, b = map(int, input().split())
print(b if a >= 13 else 0 if a <= 5 else b//2) a, b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b print(b if a >= 13 else 0 if a <= 5 else b//2) print b if a >= 13 else 0 if a <= 5 else b//2 a >= 13 a 13 b 0 if a <= 5 else b//2 a <= 5 a 5 0 b//2 b 2 b = map(int, input().split()) map(int, input().split()) b a, b = map(int, input().split()) map(int, input().split()) a
a, b = map(int, input().split())
print(b if a >= 13 else 0 if a <= 5 else b//2)