a,b = map(int,input().split())
print( b if a >= 13 else int(b/2) if a < 13 and a >= 6 else 0) 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 int(b/2) if a < 13 and a >= 6 else 0) print b if a >= 13 else int(b/2) if a < 13 and a >= 6 else 0 a >= 13 a 13 b int(b/2) if a < 13 and a >= 6 else 0 a < 13 and a >= 6 a < 13 a 13 a >= 6 a 6 int(b/2) int b/2 b 2 0 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 int(b/2) if a < 13 and a >= 6 else 0)