x,y = [int(x) for x in input().split()]

if (0<=x<=5):
      print(0)
elif (5<x<13):
      print(y//2)
else:
      print(y) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x x,y = [int(x) for x in input().split()] x [int(x) for x in input().split()] y if (0<=x<=5):
      print(0)
elif (5<x<13):
      print(y//2)
else:
      print(y) 0<=x<=5 0<=x 0 x 5 print(0) print 0 elif (5<x<13):
      print(y//2) 5<x<13 5<x 5 x 13 print(y//2) print y//2 y 2 print(y) print y x,y = [int(x) for x in input().split()] [int(x) for x in input().split()] x y = [int(x) for x in input().split()] [int(x) for x in input().split()] y
x,y = [int(x) for x in input().split()]

if (0<=x<=5):
      print(0)
elif (5<x<13):
      print(y//2)
else:
      print(y)
