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