import math
x = input().split()
a = int(x[0]) # 年齢
b = int(x[1])
if a <= 5:
  print(0)
elif a >= 6 and a <= 12:
  print(math.floor(b/2))
else:
  print(b) import math math x = input().split() x input().split() ().split () input split a = int(x[0]) a int(x[0]) int x[0] x 0 b = int(x[1]) b int(x[1]) int x[1] x 1 if a <= 5:
  print(0)
elif a >= 6 and a <= 12:
  print(math.floor(b/2))
else:
  print(b) a <= 5 a 5 print(0) print 0 elif a >= 6 and a <= 12:
  print(math.floor(b/2)) a >= 6 and a <= 12 a >= 6 a 6 a <= 12 a 12 print(math.floor(b/2)) print math.floor(b/2) math.floor math floor b/2 b 2 print(b) print b x = input().split() input().split() x a = int(x[0]) int(x[0]) a b = int(x[1]) int(x[1]) b
import math
x = input().split()
a = int(x[0]) # 年齢
b = int(x[1])
if a <= 5:
  print(0)
elif a >= 6 and a <= 12:
  print(math.floor(b/2))
else:
  print(b)