a,b = map(int, raw_input().split(' '))
if a < 6:
  print 0
elif a < 13:
  print b/2
else:
  print b a,b = map(int, raw_input().split(' ')) a map(int, raw_input().split(' ')) map int raw_input().split(' ') ().split () raw_input split ' ' b if a < 6:
  print 0
elif a < 13:
  print b/2
else:
  print b a < 6 a 6 print elif a < 13:
  print b/2 a < 13 a 13 print b/2 b 2 print b = map(int, raw_input().split(' ')) map(int, raw_input().split(' ')) b a,b = map(int, raw_input().split(' ')) map(int, raw_input().split(' ')) a
a,b = map(int, raw_input().split(' '))
if a < 6:
  print 0
elif a < 13:
  print b/2
else:
  print b