n,m=map(int,input().split())
if n>=13:
  print(m)
elif n>=6:
  print(m//2)
else:
  print(0) n,m=map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split m if n>=13:
  print(m)
elif n>=6:
  print(m//2)
else:
  print(0) n>=13 n 13 print(m) print m elif n>=6:
  print(m//2) n>=6 n 6 print(m//2) print m//2 m 2 print(0) print 0 n,m=map(int,input().split()) map(int,input().split()) n m=map(int,input().split()) map(int,input().split()) m
n,m=map(int,input().split())
if n>=13:
  print(m)
elif n>=6:
  print(m//2)
else:
  print(0)