data=input().split()
A=int(data[0])
B=int(data[1])
if A>=13:
  print(B)
elif 6<=A<=12:
  print(int(B/2))
else:
  print(0) data=input().split() data input().split() ().split () input split A=int(data[0]) A int(data[0]) int data[0] data 0 B=int(data[1]) B int(data[1]) int data[1] data 1 if A>=13:
  print(B)
elif 6<=A<=12:
  print(int(B/2))
else:
  print(0) A>=13 A 13 print(B) print B elif 6<=A<=12:
  print(int(B/2)) 6<=A<=12 6<=A 6 A 12 print(int(B/2)) print int(B/2) int B/2 B 2 print(0) print 0 A=int(data[0]) int(data[0]) A B=int(data[1]) int(data[1]) B data=input().split() input().split() data
data=input().split()
A=int(data[0])
B=int(data[1])
if A>=13:
  print(B)
elif 6<=A<=12:
  print(int(B/2))
else:
  print(0)