Problem:
 Score : 100 points    Problem Statement Takahashi, who is A years old, is riding a Ferris wheel.  It costs B yen ( B is an even number) to ride the Ferris wheel if you are 13 years old or older, but children between 6 and 12 years old (inclusive) can ride it for half the cost, and children who are 5 years old or younger are free of charge. (Yen is the currency of Japan.)  Find the cost of the Ferris wheel for Takahashi.      Constraints  0 ≤ A ≤ 100  2 ≤ B ≤ 1000  B is an even number.         Input Input is given from Standard Input in the following format:  A  B       Output Print the cost of the Ferris wheel for Takahashi.        Sample Input 1 30 100      Sample Output 1 100  Takahashi is 30 years old now, and the cost of the Ferris wheel is 100 yen.       Sample Input 2 12 100      Sample Output 2 50  Takahashi is 12 years old, and the cost of the Ferris wheel is the half of 100 yen, that is, 50 yen.       Sample Input 3 0 100      Sample Output 3 0  Takahashi is 0 years old, and he can ride the Ferris wheel for free.

Solution (Python):
a,b = map(int,input().split())
if a>=13:
    print(b)
elif a>=6:
    print(b//2)
else:
    print(0)

Solution (Python):



A, B = map(int, input().split())


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

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

Solution (Python):
A, B = map(int,input().split())
if A > 12:
    print(B)
elif A > 5 and A < 13:
    print(int(B/2))
elif A < 6:
    print(0)

Solution (Python):
a, b = map(int, input().split())
if 6 <= a <= 12:
    b = b/2
elif a<6:
    b = 0
print(int(b))

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

Solution (Python):
A,B = map(int, input().split())
if A <= 5:
  print(0)
elif A <= 12:
  print(B//2)
else:
  print(B)

Solution (Python):
a,b=map(int,input().split())
if a>=13:
    print(b)
elif 6<=a<=12:
    print(b//2)
elif a<=5:
    print(0)

Solution (Python):
a, b = map(int, input().split())

if a >= 13:
    print(b)
elif 6 <= a <= 12:
    print(b//2)
else:
    print(0)

Solution (Python):


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

Solution (Python):

a, b = map(int, input().split())

if a >= 13:
    print(b)
elif 6 <= a and a <=12:
    print(b//2)
else:
    print(0)

Solution (Python):
a,b=map(int,input().split())
if a>=13:
    print(b)
elif a>=6:
    print(b//2)
else:
    print(0)

Solution (Python):
a,b = map(int,input().split())
print( b if a >= 13 else int(b/2) if a < 13 and a >= 6 else 0)

Solution (Python):
A, B = map(int, input().split())
if A <= 5:
    print(0)
elif A <= 12:
    print(B // 2)
else:
    print(B)

Solution (Python):


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

Solution (Python):
a,b=map(int,input().split())
if a>=13:
  print(b)
elif 6<=a<13:
  print(b//2)
else:
  print(0)

Solution (Python):
a,b=map(int,input().split());print(0 if a<6 else b//2 if a<13 else b)

Solution (Python):

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

Solution (Python):
a, b = map(int,input().split())
if a >= 13:
  print(b)
elif a <= 12 and a >= 6:
  print(b//2)
else:
  print(0)

Solution (Python):
a,b = map(int,input().split())
if a > 12:
  print(b)
elif 6<= a<=12:
  print(b//2)
else:
  print(0)

Solution (Python):
A, B = map(int,input().split())
if A<6:
    print(0)
elif A<13:
    print(B//2)
else:
    print(B)

Solution (Python):
A, B = map(int, input().split())

if A >= 13:
  print(B)
elif A <= 5:
  print(0)
else:
  print(int(B/2))

Solution (Python):


A, B = map(int, input().split())

if A <= 5:
    print(0)
elif A >= 6 and A <= 12:
    print(B//2)
else:
    print(B)

Solution (Python):
A,B = map(int,input().split())

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

Solution (Python):
a, b = map(int, input().split())
if a <= 5:
    print(0)
elif a >= 6 and a <= 12:
    print(b//2)
else:
    print(b)

Solution (Python):
A, B = map(int, input().split())
if A >= 13:
	B = B
elif A <= 12 and A >= 6:
  B = B // 2
elif A < 6:
  B *= 0
print(B)

Solution (Python):
a, b = list(map(int, input().split()))
if a >= 13:
    print(b)
elif a >= 6:
    print(int(b//2))
else:
    print(0)

Solution (Python):
A, B = list(map(int,input().split()))
if A <= 5:
  print(0)
elif 6 <= A and A <= 12:
  print(int(B/2))
else:
  print(B)

Solution (Python):
a,b=map(int,input().split())
print(0 if a<=5 else b//2 if a<=12 else b)

Solution (Python):
a,b=map(int,input().split())
if a>=13:
    print(b)
elif a>=6:
    print(b//2)
else:
    print(0)

Solution (Python):
A, B = map(int, input().split())

if A >= 13:
    print(B)
elif A >= 6:
    print(int(B/2))
else:
    print(0)

Solution (Python):
a,b=map(int,input().split())
if a<6:
	print("0")
elif a<13:
	print(b//2)
else:
	print(b)

Solution (Python):
a,b = map(int,input().split())

if(a <= 5):
    print(0)
elif(a <= 12):
    print(b//2)
else:
    print(b)

Solution (Python):
import sys
from math import ceil, floor, sqrt, sin, cos, pi
from itertools import accumulate, permutations, combinations
from fractions import gcd 
from collections import deque, Counter
from operator import itemgetter
from heapq import heappop,heappush
sys.setrecursionlimit(10**7)
def lcm(x, y): return ((x * y) // gcd(x, y)) 


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

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

Solution (Python):
a,b=map(int,input().split())
if a>=13:
  print(b)
elif 12>=a>=6:
  print(b//2)
else:
  print(0)

Solution (Python):
A, B = map(int, input().split())

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

Solution (Python):
A, B = map(int, input().split())
if A >= 13:
    print(B)
elif 6 <= A <= 12:
    print(int(B / 2))
else:
    print(0)

Solution (Python):
n, m = map(int, input().split())

if  n > 12:
    print(m)
elif n < 6 :
    print(0)
else:
    print(m//2)

Solution (Python):
a, b = map(int, input().split())
if a <= 5:
    print(0)
elif 6 <= a <= 12:
    print(b//2)
else:
    print(b)

Solution (Python):
A, B = list(map(int, input().split()))

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

Solution (Python):
A, B = map(int, input().split())

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

Solution (Python):
a, b = map(int, input().split())
if a >= 13:
    print(b)
elif a >=6 and a <= 12:
    print(b//2)
else:
    print("0")

Solution (Python):
a,b=map(int,input().split())
if a>12:
    print(b)
elif a>5:
    print(b//2)
else:
    print(0)

Solution (Python):
a,b = map(int,input().split())
 
if a >= 13:
  print(b)
  
elif a>=6 and a<=12:
  print(b//2)
 
else:
  print("0")

Solution (Python):
A,B = map(int,input().split())
if A >= 13:
  print(B)
elif A >= 6:
  print(B // 2)
else:
  print(0)

Solution (Python):
A, B = map(int,input().split())

if A<=5:
    print(0)
elif 6<=A<=12:
    print(B//2)
else:
    print(B)

Solution (Python):

a, b = map(int, input().split())

if a >= 13:
    print(b)

elif 6 <= a <= 12:
    print(b//2)

else:
    print(0)

Solution (Python):
a, b = map(int, input().split())
if a >= 13:
    print(b)
elif a >= 6:
    print(b // 2)
else:
    print(0)

Solution (Python):
a,b= map(int, input().split())

if a>=13:
    print(b)
elif 6<=a<13:
    print(b//2)
else:
    print(0)

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

Solution (Python):
a,b=map(int,input().split())
if a>=13:
  print(b)
elif a>=6:
  print(b//2)
else:
  print("0")

Solution (Python):
n,m=map(int,input().split())
if n>=13:
  print(m)
elif n>=6:
  print(m//2)
else:
  print(0)

Solution (Python):
a,b = map(int,input().split())

if a >= 13:
  print(b)
elif 6 <= a <= 12:
  print(b // 2)
else:
  print(0)

Solution (Python):
import sys 
 
A, B = map(int, input().split())
cond_older = (12 < A)
cond_young = (6 <= A) & (12 >= A)
 
ans = (
  B if cond_older else
  B//2 if cond_young else
  0
)
 
print(ans)

Solution (Python):
A, B = map(int, input().split())

if 13 <= A:
  ans = B
elif A < 6:
  ans = 0
else:
  ans = B / 2
  
print(int(ans))

Solution (Python):
a, b=map(int,input().split())

if a>=13:
    print(b)
elif 6<=a<=12:
    print(b//2)
else:
    print(0)

Solution (Python):
a,b = map(int, input().split())

if a >= 13:
  print(b)
elif a >= 6:
  print(b//2)
else:
  print(0)

Solution (Python):

a,b = map(int,input().split())

if a >= 13:
  print(b)
elif a >= 6:
  print(int(b/2))
else:
  print(0)

Solution (Python):
a, b = [int(x) for x in input().split()]
if a < 6:
    b = 0
elif a < 13:
    b //= 2
print(b)

Solution (Python):
a, b = [int(x) for x in input().split()]
ans = 0
if a >= 13:
    ans = b
elif a >= 6:
    ans = b // 2
print(ans)

Solution (Python):


import sys



















def main():
    mod = 1000000007                  
    inf = float('inf')
    sys.setrecursionlimit(10**6)    
    def input(): return sys.stdin.readline().rstrip()
    def ii():  return int(input())
    def mi():  return map(int, input().split())
    def mi_0(): return map(lambda x: int(x)-1, input().split())
    def lmi(): return list(map(int, input().split()))
    def lmi_0(): return list(map(lambda x: int(x)-1, input().split()))
    def li():  return list(input())
    
    
    a, b = mi()
    if a >= 13:
        print(b)
    elif a >= 6:
        print(b//2)
    else:
        print(0)

if __name__ == "__main__":
    main()

Solution (Python):
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)

Solution (Python):
a,b=map(int,input().split())
ans=0
if a>=13:
  ans=b
elif 6<=a and a<=12:
  ans=b//2
print(ans)

Solution (Python):
a, b = map(int, input().split())

if a <= 5:
    print(0)
elif a >= 13:
    print(b)
else:
    print(b // 2)

Solution (Python):
a, b = map(int,(input().split()))

if a<= 5:
    print(0)
elif 6 <= a <= 12:
    print(int(b/2))
else:
    print(b)

Solution (Python):
a, b = map(int, input().split())
if 13 <= a:
    print(b)
elif 6 <= a <= 12:
    print(b // 2)
else:
    print(0)

Solution (Python):
import math
a,b=map(int,input().split())
if(a>=13):
  print(b)
elif(a>=6 and a<=12):
  print(math.ceil(b/2))
else:
  print("0")

Solution (Python):
A,B=map(int, input().split())
if A >= 13:
	print(B)
elif 6<=A<=12:
	print(B//2)
else:
    print(0)

Solution (Python):
a, b = map(int, input().split())
if a >= 13:
    print(b)
elif a >= 6 and a <= 12:
    print(b//2)
else:
    print(0)

Solution (Python):
a, b = map(int, input().split())
if a >= 13:
    ans = b
elif a >= 6:
    ans = b // 2
else:
    ans = 0
print(ans)

Solution (Python):
def main():
    A, B = map(int, input().split())
    if A >= 13:
        print(B)
    elif A >= 6:
        print(B//2)
    else:
        print(0)
if __name__ == "__main__":
    main()

Solution (Python):
a, b = map(int, input().split())
if a >= 13:
    print(b)
elif 6 <= a <= 12:
    print(b//2)
else:
    print(0)

Solution (Python):
A,B=[int(i)for i in input().split()]
if A>=13:
  print(B)
elif 13>A>=6:
  print(B//2)
else:
  print('0')

Solution (Python):
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)

Solution (Python):
a, b = map(int, input().split())

if a>=13:
  print(b)
elif a>=6:
  print(b//2)
else:
  print(0)

Solution (Python):
age, fee = map(int, input().split())

if 13 <= age:
    print(fee)
elif 6 <= age  and age <= 12:
    print(fee // 2)
elif age < 6:
    print(0)

Solution (Python):
A, B = map(int, input().split())
if(A<=5):
    print(0)
elif(5<=A<=12):
    print(int(B/2))
else:
    print(B)

Solution (Python):
A,B=map(int,input().split())
if A>=13:
  ans=B
elif 6<=A<=12:
  ans=B//2
else:
  ans=0
print(ans)

Solution (Python):
A,B = map(int, input().split())

if A >= 13:
    print(B)

elif A <= 5:
    print(0)

else:
    print(round(B/2))

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

Solution (Python):


a, b = map(int, input().split())

if a>=13:
    print(b)
elif a>=6 and a<=12:
    print(b//2)
else:
    print(0)

Solution (Python):
A,B=map(int,input().split(" "))

Ans=0
if A>=13:
    Ans=B
elif 6<=A<13:
    Ans=B//2
print(Ans)

Solution (Python):
a, b = map(int, input().split())
if a >= 13:
    print(b)
elif 6 <= a <= 12:
    print(b // 2)
else:
    print(0)

Solution (Python):
a,b=map(int,input().split());print(0 if a<6 else b//2 if a<13 else b)

Solution (Python):
def main():
    import sys
    input = sys.stdin.readline
    sys.setrecursionlimit(10**7)
    from collections import Counter, deque
    
    from itertools import combinations, permutations, accumulate, groupby, product
    from bisect import bisect_left,bisect_right
    from heapq import heapify, heappop, heappush
    from math import floor, ceil
    

    
    

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

if __name__ == '__main__':
    main()

Solution (Python):
A, B = map(int, input().split())
if A >= 13:
  print(B)
elif 6 <= A <= 12:
  print(B // 2)
else:
  print(0)

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

Solution (Python):
a, b = map(int, input().split())
if a <= 5:
    print("0")

elif 6 <= a and a <= 12:
    print(int(b/2))

elif a >= 13:
    print(b)

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product, groupby
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def ZIP(n): return zip(*(MAP() for _ in range(n)))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

A, B = MAP()

if A <= 5:
	print(0)
	exit()
	
print(B if A >= 13 else B//2 )

Solution (Python):
a,b=map(int,input().split())

if a >= 13:
    print(b)
elif a >=6:
    print(b//2)
else:
    print(0)

Solution (Python):
a,b=map(int,input().split())
if a>=13:
    p=b
elif 6<=a<=12:
    p=b//2
else:
    p=0
print(p)

Solution (Python):
a, b = map(int, input().split())

if a >= 13:
    price = b
elif a >= 6 and a <= 12:
    price = b/2
else:
    price = 0

print(int(price))

Solution (Python):
A, B = map(int, input().split())
if A >= 13:
    print(B)
elif A <= 12 and A >= 6:
    print(B//2)
else:
    print(0)

Solution (Python):
a,b = map(int,input().split())

if a>=13:
  print(b)
elif a<=5:
  print(0)
else:
  print( int(b/2) )

Solution (Python):
a,b=(int(i) for i in input().split())
if a>=13:
	print(b)
elif a>=6:print(b//2)
else:print(0)

Solution (Python):
A,B=map(int,input().split())
if A<=5:
    print(0)
elif 6<=A<=12:
    print(B//2)
else:
    print(B)

Solution (Python):
A,B = map(int,input().split())
if A >= 13:
    print(int(B))

elif 6 <= A < 13:
    print(int(B/2))

else:
    print(int(0))

Solution (Python):
a, b = [int(i) for i in input().split()]
if a >= 13:
    print(b)
elif a >= 6:
    print(b // 2)
else:
    print(0)

Solution (Python):
i = list(map(int, input().split())) 
A = i[0] 
B = i[1] 

if A >= 13:
    print(B)
elif A >= 6:
    print(int(B/2))
else:
    print(0)

Solution (Python):
A, B = map(int, input().split())

if A >= 13:
	print(B)
elif 12 >= A >= 6:
	print(B//2)
else:
	print(0)

Solution (Python):
A, B = map(int, input().split())

if A <= 5:
    B = 0
elif A <= 12:
    B //= 2

print(B)

Solution (Python):
a,b = map(int, input().split())
if a>=13:
    print(b)
elif a>=6 and a<=12:
    print(b//2)
else:
    print(0)

Solution (Python):
A,B=map(int, raw_input().split())
if 13<=A:
    print B
elif 6<=A<=12:
    print B/2
elif A<=5:
    print 0

Solution (Python):
age,price = map(int,input().split())

if age >= 13:
    ans = price
elif age >= 6:
    ans = price//2
else:
    ans = 0

print(ans)

Solution (Python):
a, b = map(int, input().split())

if a <= 5:
  print(0)
elif a <= 12:
  print(b // 2)
else:
  print(b)

Solution (Python):
A,B = map(int,input().split())
if 13 <= A:
	print(B)
elif 6 <= A:
	print(B//2)
else:
	print(0)

Solution (Python):
A,B = map(int, input().split())
if A>=13:
  print(B)
elif A>=6:
  print(B//2)
else:
  print(0)

Solution (Python):
a, b = map(int, input().split())
if a >= 13:
    print(b)
elif 6 <= a <= 12:
    print(b//2)
else:
    print(0)

Solution (Python):
a,b=map(int,input().split())
if a>=13:
  print(b)
elif 6<=a<=12:
  print(int(b/2))
else:
  print(0)

Solution (Python):
a,b = map(int,input().split())
if a >= 13:
  print(int(b))
elif 6 <= a <= 12:
  print(int(b/2))
else:
  print('0')

Solution (Python):
a,b = map(int, input().split())
if (a > 12):
    print(b)
elif (a<6):
    print(0)
else:
    print(b//2)

Solution (Python):
a, b = map(int, input().split())
if a >= 13:
    print(b)
elif a >= 6 and a <= 12:
    print(int(b /2))
else:
    print(0)

Solution (Python):
foo = list(map(int, input().split()))
A = foo[0]
B = foo[1]
if A >= 13:
    print(B)
elif A <= 12 and A >= 6:
    print(int(B/2))
else:
    print(0)

Solution (Python):
def main():
    a, b = [int(x) for x in input().split()]
    if a > 12:
        print(b)
    elif 6 <= a <= 12:
        print(int(b/2))
    else:
        print(0)
main()

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

Solution (Python):
i = input().split()

a,b = list(map(int, i))

if a >= 13:
    print(int(b))
elif a <= 5:
    print(0)
else:
    print(int(b/2))

Solution (Python):
A, B = map(int, input().split())

if (A<=5):
	print(0)

elif(A>=6 and A<=12):
	print(int(B/2))

else:
	print(B)

Solution (Python):
numerosStr = input().split(" ")
numero=[]
for j in numerosStr:
    numero.append(int(j))

if numero[0] >= 13:
    print(numero[1])
elif numero[0] >= 6 and numero[0] <=12:
    print(int(numero[1]/2))
elif numero[0]<=5:
    print(0)

Solution (Python):
a,b = input().split()
a = int(a)
b = int(b)

if 0 <= a <= 100:
    if 2 <= b <= 1000 and (b%2 == 0):
        if a >= 13 :
            print(int(b))
        if 6 <= a <= 12:
            x = b/2
            print(int(x))
        if a <= 5 :
            print(int(0))

Solution (Python):
line = input()
A, B = [int(n) for n in line.split()]
price = B if A >= 13 else int(B/2) if (A >= 6 and A<=12) else 0
print(price)

Solution (Python):
line = input()
a, b = [int(n) for n in line.split()]
if a>=13:
    print(b)
elif a>=6:
    b = b/2
    b = int(b)
    print(b)
else:
    print("0")

Solution (Python):
line = input()
numbers = [int(n) for n in line.split()]
if numbers[0] <= 5:
    predicted_value = 0
elif numbers[0] <= 12:
    predicted_value = numbers[1]//2
else:
    predicted_value = numbers[1]
print(predicted_value)

Solution (Python):
line = input()
A,B = [int(n) for n in line.split()]
if A<= 5:
    print(0)
elif A <= 12:
    print(B//2)
else:
    print(B)

Solution (Python):
a, b = [int(x) for x in input().split()]

cost = 0
if a >= 13:
    cost = b
elif a >= 6:
    cost = b / 2
else:
    cost = 0

print(int(cost))

Solution (Python):
A, B = map(int, input().split())
if 5 < A < 13:
  print(int(B/2))
elif A > 12:
  print(B)
else:
  print(0)

Solution (Python):
A, B = map(int, input().split())

if A >= 13:
  print(B)
elif 13 > A >= 6:
  print(B//2)
else:
  print(0)

Solution (Python):
a,b = map(int,input().split())
if a>=13: print(b)
elif a>=6: print(b//2)
else: print(0)

Solution (Python):
a,b = map(int, input().split())
if a >= 13:
    print(b)
elif a >= 6 and a <= 12:
    print(b//2)
else:
    print(0)

Solution (Python):
a,b=map(int,input().split())

if a>=13:
    print(b)
elif a>=6 and a<=12:
    print(b//2)
else:
    print(0)

Solution (Python):
s = input().split()

a = int(s[0])
b = int(s[1])

if a >= 13:
    print(b)
elif a <= 5:
    print("0")
else:
    print(int(b / 2))

Solution (Python):

a,b=map(int, input().split())
if a <6:
    print("0")
elif a <13:
    print(int(b/2))
else:
    print(b)

Solution (Python):

A, B = map(int, input().split())
if A >= 13:
    print(B)
elif 6 <= A <= 12:
    print(B//2)

elif A <= 5:
    print(0)

Solution (Python):
a, b = map(int, input().split())
if a >= 13:
    print(b)
elif a >= 6:
    print(b//2)
else:
    print(0)

Solution (Python):
a, b = map(int, input().split())

if 12 < a:
    print(b)
elif 5 < a:
    print(b // 2)
else:
    print(0)

Solution (Python):
icase=0
if icase==0:
    a,b=map(int,input().split())
    if a<=5:
        print(0)
    elif a<=12:
        print(b//2)
    else:
        print(b)

Solution (Python):
A, B = map(int, input().split())
if A <= 5:
    cost = 0
elif A <= 12:
    cost = B / 2
else:
    cost = B
print(int(cost))

Solution (Python):
A, B = map(int,input().split())
if A >= 13:
  print(B)
elif 6<=A and A<=12:
  print(B//2)
else:
  print(0)

Solution (Python):
A, B = map(int, input().split())

if A >= 13:
    print(B)
elif A >= 6:
    print(B // 2)
else:
    print(0)

Solution (Python):
a,b = map(int,input().split())
if a >=13:
    print(b)
elif  6 <= a <= 12:
    print(b//2)
else:
    print(0)

Solution (Python):
a = list(map(int, input().split()))

if a[0] >= 13:
  print(a[1])
elif a[0] >= 6:
  print(a[1] //2)
else:
  print(0)

Solution (Python):
a,b=map(int,input().split())

if a>=13:
  print(b)
elif a<=12 and a>=6:
  print(int(b/2))
else:
  print(0)

Solution (Python):
A, B = map(int, input().split())
if A >= 13:
  print(B)
elif A >= 6:
  print(B//2)
else:
  print(0)

Solution (Python):
a, b = map(int, input().split())
if a >= 13:
    print(b)
elif a >= 6:
    print(b//2)
else:
    print(0)

Solution (Python):
a, b = map(int, input().split())
if a<=5:
    print(0)
elif a>12:
    print(b)
else:
    print(b//2)

Solution (Python):
A, B = map(int, input().split())
if A >= 13:
    print(B)
elif A <= 5:
    print(0)
else:
    print(B//2)

Solution (Python):
A,B = map(int,input().split())
if A >= 13:
  print(B)
elif A < 13 and A >= 6:
  print(B//2)
else:
  print(0)

Solution (Python):
A, B = map(int, input().split())

if 6 <= A <= 12:
  B = B / 2
elif 5 >= A:
  B = 0
else:
  pass

print(int(B))

Solution (Python):
a,b = map(int, input().split())
if a >= 13:
    print(b)
elif a >= 6:
    print(b//2)
else:
    print(0)

Solution (Python):
A,B=map(int,input().split()) 
if A>=13:
  print(B)
elif 6<=A<=12:
  print(B//2)
else:
  print(0)

Solution (Python):
A,B=map(int, input().split())
if A>=13:
  print(B)
elif A>=6:
  print('{:.0f}'.format(B/2))
else:
  print(0)

Solution (Python):
a,b = map(int,input().split())

if a>=13:
  print(b)
elif a>=6:
  print(int(b/2))
else:
  print(0)

Solution (Python):
a,b = map(int,input().split())
if a >= 13:
  print(b)
elif 13 > a >= 6:
  print(b//2)
else:
  print(0)

Solution (Python):
A, B = [int(n) for n in input().split()]
print(B if A>=13 else B//2 if 6<=A<=12 else 0)

Solution (Python):
a,b=map(int,input().split())
if a>=13:
    print(b)
elif a>=6:
    print(b//2)
else:
    print(0)

Solution (Python):
A, B = map(int, input().split())
if A>= 13:
    print(B)
elif 6 <= A <= 12:
    print(B//2)
else:
    print(0)

Solution (Python):
a, b = map(int, input().split())

if a <= 5:
    print(0)
elif a<=12:
    print(b//2)
else:
    print(b)

Solution (Python):
import sys


def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def MI1(): return map(int1, sys.stdin.readline().split())

def LI(): return list(map(int, sys.stdin.readline().split()))

def LLI(rows_number): return [LI() for _ in range(rows_number)]

p2D = lambda x: print(*x, sep="\n")


a,b = MI()

if a <=5:
    print(0)
elif a >=6 and a <= 12:
    print(int(b/2))
else:
    print(b)

Solution (Python):
N, M = map(int, input().split())

if N <= 5:
    print(0)
elif 6 <= N <= 12:
    print(M // 2)
else:
    print(M)

Solution (Python):

a, b = map(int, input().split())

if a >= 13:
    print(b)
elif 6 <= a <= 12:
    b = int(b/2)
    print(b)
elif a <= 5:
    print(0)

Solution (Python):
A,B = map(int,input().split())
if A <= 5:
  print(0)
elif A>=6 and A <= 12:
  print(B//2)
else:
  print(B)

Solution (Python):
a,b=map(int,input().split())
if a>12:
    print(int(b))	
elif 12>=a>=6:
    print(int(b/2))
else:
    print(0)

Solution (Python):
A, B = map(int, input().split())
if A >= 6 and 12 >= A:
  print(int(B/2))
elif 5 >= A:
  print(0)
else:
  print(B)

Solution (Python):
a,b =list(map(int,input().split()))

if a >=13:
    print(b)
elif 6 <= a <= 12:
    print(b//2)
else:
    print(0)

Solution (Python):
A, B = map(int, input().split())

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

Solution (Python):
import math
A, B =map(int,input().split())

if A >=13 :
    print(B)
elif A >= 6 and 12 >=A :
    print(math.floor(B/2))
else : 
    print(0)

Solution (Python):
a,b = map(int, input().split())

if 6<= a <= 12:
    print(int(b/2))
elif 5>= a :
    print(0)
else:
    print(b)

Solution (Python):
A,B = map(int,input().split())

if A < 6:
    print(0)
elif 6 <= A and A <= 12:
    print(B//2)
else:
    print(B)

Solution (Python):
A, B = map(int, input().split())
if A >= 13:
    print (B)
elif 6 <= A <= 12:
    print (B//2)
else:
    print (0)

Solution (Python):
a , b = map(int,input().split())
if a >= 13:
    print(b)
elif 6 <= a <= 12:
    print(b//2)
else:
    print(0)

Solution (Python):
inputted = list(map(int, input().split()))
A = int(inputted[0])
B = int(inputted[1])

age = A
full_price = B

is_full_price = age >= 13
is_half_price = 6 <= age <= 12

price = 0
if is_full_price:
    price = full_price
elif is_half_price:
    price = int(full_price / 2)

print(price)

Solution (Python):
a, b = map(int, input().split())
if a<=5 :
    print(0)
elif 6<= a <= 12:
    print(b//2)
else :
    print(b)

Solution (Python):
A, B = map(int, input().split())

if A <= 5:
    print(0)
elif A <= 12:
    print(B//2)
else :
    print(B)

Solution (Python):

import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

A, B = lr()
answer = B if A >= 13 else B // 2 if A >= 6 else 0
print(answer)

Solution (Python):
a,b = map(int,input().split())
if a >= 13:
  print(b)
elif 6 <= a <= 12:
  print(b//2)
else:
  print(0)

Solution (Python):
A,B=map(int,input().split())
if A>=13:
    print(B)
if 5<A<13:
    print(B//2)
if A<=5:
    print(0)

Solution (Python):
n,m = map(int,input().split())
if n>12:
    print(m)
elif n>5:
    print(m//2)
else:
    print(0)

Solution (Python):
n,m = map(int,input().split())
if n>12:
    print(m)
elif n>5:
    print(m//2)
else:
    print(0)

Solution (Python):
a,b = map(int,input().split())
if a >= 13:
  print(b)
elif 6 <= a <= 12:
  print(b//2)
else:
  print(0)

Solution (Python):
a,b=map(int,input().split())
if a<=5:print(0)
elif a<=12:print(int(b/2))
else:print(b)

Solution (Python):
a,b = map(int,input().split())
 
if a > 12:
  print(b)
elif a > 5:
  print(b//2)
else:
  print(0)

Solution (Python):
a,b = map(int,input().split())
if a <= 5:
    print(0)
elif 6 <= a <= 12:
    print(int(b/2))
else:
    print(b)

Solution (Python):
A = list(map(int,input().split()))
if A[0] <= 5:
    print(0)
elif A[0]  <= 12:
    print(A[1]//2)
else:
    print(A[1])

Solution (Python):
import sys
input = sys.stdin.readline

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

a,b=MI()
if a>=13:
    price=b
elif 6<=a<=12:
    price=int(b/2)
else:
    price=0
print(price)

Solution (Python):
A,B=map(int,input().split())
if A>=13:
    print(B)
elif 6<=A<=12:
    print(int(B/2))
else:
    print(0)

Solution (Python):
a, b = map(int, input().split())
if a >= 13:
    print(b)
elif a >= 6:
    print(b//2)
else:
    print(0)

Solution (Python):
age, price = map(int, input().split())

if 13 <= age <= 100:
  price = price
  
elif 6 <= age <= 12:
  price = price // 2
  
elif 0 <= age <= 5:
  price = 0
  
print(price)

Solution (Python):
A, B = map(int, input().split())
if (A >= 13):
    print(B)
elif (A <= 5):
    print(0)
else:
    print(int(B/2))

Solution (Python):
a,b = map(int, input().split())
if a>=13:print(b)
elif 6<=a<13:print(int(b/2))
else:print(0)

Solution (Python):
a, B = map(int, input().split())
if a >= 13:
  print(B)
elif a >= 6:
  print(B//2)
else:
  print(0)

Solution (Python):
A, B = map(int, input().split())
if A >= 13:
  print(B)
elif A >= 6:
  print(B//2)
else:
  print(0)

Solution (Python):
a, b = map(int, input().split())
if a >= 13:
     print(b)
elif 6 <= a <= 12:
     print(b//2)
else:
     print("0")

Solution (Python):
def q1():
    A, B = (int(i) for i in input().split())
    if A >= 13:
        print(B)
    elif A >= 6:
        print(int(B / 2))
    else:
        print(0)


if __name__ == '__main__':
    q1()

Solution (Python):
A,B=map(int,input().split())
if A>=13:
  print(B)
elif A>=6 and A<=12:
  print(B//2)
else:
  print(0)

Solution (Python):
a,b=map(int,input().split())
if a>=13:
  print(b)
elif 6<=a and a<=12:
  print(b//2)
else:
  print(0)

Solution (Python):
a,b = map(int,input().split())
if a>12:
    print(b)
elif a>5:
    print(b//2)
else:
    print(0)

Solution (Python):
import sys

input = sys.stdin.readline


def main():
    A, B = map(int, input().split())

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


if __name__ == "__main__":
    main()

Solution (Python):
A,B = map(int,input().split())
if 13 <= A:
  print(B)
elif 6 <= A <= 12:
  print(B//2)
else:
  print(0)

Solution (Python):

import sys
input = sys.stdin.readline











A,B = map(int,input().split())

ans = 0
if 13 <= A:
    ans = B
elif 6 <= A <= 12:
    ans = B//2

print(ans)

Solution (Python):
def main():
    a,b = tuple([int(t)for t in input().split()])

    if a<6:
        print(0)
    elif a<13:
        print(b//2)
    else:
        print(b)
if __name__ == "__main__":
    main()

Solution (Python):
a,b=map(int,input().split())
if a<6:
    print(0)
elif a<13:
    print(b//2)
else:
    print(b)

Solution (Python):
import sys
input = lambda: sys.stdin.readline().rstrip()
input_nums = lambda: list(map(int, input().split()))

def main():
    A, B = input_nums()
    if A >= 13:
        fee = B
    elif A >= 6:
        fee = B//2
    else:
        fee = 0
    print(fee)

if __name__ == '__main__':
    main()

Solution (Python):
a, b = map(int, input().split())
if a >= 13:
    print(b)
elif a < 13 and a >= 6:
    print(b // 2)
else:
    print(0)

Solution (Python):

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

Solution (Python):
a,b = map(int,input().split())
if a <=5:
    print("0")
elif 12 >= a >= 6:
    print(b//2)
else:
    print(b)

Solution (Python):
A, B = map(int,input().split())
if A >= 13: print(B)
elif A >= 6: print(B // 2)
else: print(0)

Solution (Python):
a,b=map(int,input().split())
if 13<=a:
    print(b)
elif 6<=a<=12:
    print(b//2)
else:
    print(0)

Solution (Python):
a,b=map(int,input().split())
if a<=5:
  print(0)
elif a<=12:
  print(b//2)
else:
  print(b)

Solution (Python):

a,b = map(int,input().split())



if 13 <= a:
    print(b)
elif 6<= a <= 12:
    print(int(b/2))
else:
    print(0)