a = [int(s) for s in input().split()]
if a[0] > 12:
  print(a[1])
elif a[0] > 5:
  print(int(a[1] / 2))
else:
  print("0") int(s) for s in input().split() for s in input().split() s input().split() ().split () input split for s in input().split() int(s) int s a = [int(s) for s in input().split()] a [int(s) for s in input().split()] if a[0] > 12:
  print(a[1])
elif a[0] > 5:
  print(int(a[1] / 2))
else:
  print("0") a[0] > 12 a[0] a 0 12 print(a[1]) print a[1] a 1 elif a[0] > 5:
  print(int(a[1] / 2)) a[0] > 5 a[0] a 0 5 print(int(a[1] / 2)) print int(a[1] / 2) int a[1] / 2 a[1] a 1 2 print("0") print "0" a = [int(s) for s in input().split()] [int(s) for s in input().split()] a
a = [int(s) for s in input().split()]
if a[0] > 12:
  print(a[1])
elif a[0] > 5:
  print(int(a[1] / 2))
else:
  print("0")