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 A,B = map(int,input().split()) map(int,input().split()) A B = map(int,input().split()) map(int,input().split()) B
A,B = map(int,input().split())

print(B if A >= 13 else 0 if A <= 5 else B//2)