a = list(map(int, input().split()))
if a[0] >= 13:
  print(a[1])
elif a[0] >= 6:
  print(int(a[1]/2))
else:
  print(0) a = list(map(int, input().split())) a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split if a[0] >= 13:
  print(a[1])
elif a[0] >= 6:
  print(int(a[1]/2))
else:
  print(0) a[0] >= 13 a[0] a 0 13 print(a[1]) print a[1] a 1 elif a[0] >= 6:
  print(int(a[1]/2)) a[0] >= 6 a[0] a 0 6 print(int(a[1]/2)) print int(a[1]/2) int a[1]/2 a[1] a 1 2 print(0) print 0 a = list(map(int, input().split())) list(map(int, input().split())) a
a = list(map(int, input().split()))
if a[0] >= 13:
  print(a[1])
elif a[0] >= 6:
  print(int(a[1]/2))
else:
  print(0)