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