a = input()
s = a.find(' ')
a+= "."
b = a[s+1:-1]
a= a[0:s]
a=int(a)
b=int(b)
c= int(b/2)
if a>12:
  print(b)
elif a<=12 and a>=6:
  print(c)
else:
  print(0) a = input() a input() input s = a.find(' ') s a.find(' ') a.find a find ' ' a+= "." a "." b = a[s+1:-1] b a[s+1:-1] a s+1:-1 s+1 s 1 -1 a= a[0:s] a a[0:s] a 0:s 0 s a=int(a) a int(a) int a b=int(b) b int(b) int b c= int(b/2) c int(b/2) int b/2 b 2 if a>12:
  print(b)
elif a<=12 and a>=6:
  print(c)
else:
  print(0) a>12 a 12 print(b) print b elif a<=12 and a>=6:
  print(c) a<=12 and a>=6 a<=12 a 12 a>=6 a 6 print(c) print c print(0) print 0 a+= "." "." a b = a[s+1:-1] a[s+1:-1] b a = input() input() a c= int(b/2) int(b/2) c a=int(a) int(a) a a= a[0:s] a[0:s] a b=int(b) int(b) b s = a.find(' ') a.find(' ') s
a = input()
s = a.find(' ')
a+= "."
b = a[s+1:-1]
a= a[0:s]
a=int(a)
b=int(b)
c= int(b/2)
if a>12:
  print(b)
elif a<=12 and a>=6:
  print(c)
else:
  print(0)