import sys
A, B = map(int, sys.stdin.readline().split())

if A >= 13:
  print(B)
if 6 <= A <= 12:
  print(int(B / 2))
if A < 6:
  print(0) import sys sys A, B = map(int, sys.stdin.readline().split()) A map(int, sys.stdin.readline().split()) map int sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split B if A >= 13:
  print(B) A >= 13 A 13 print(B) print B if 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 if A < 6:
  print(0) A < 6 A 6 print(0) print 0 A, B = map(int, sys.stdin.readline().split()) map(int, sys.stdin.readline().split()) A B = map(int, sys.stdin.readline().split()) map(int, sys.stdin.readline().split()) B
import sys
A, B = map(int, sys.stdin.readline().split())

if A >= 13:
  print(B)
if 6 <= A <= 12:
  print(int(B / 2))
if A < 6:
  print(0)