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):

import sys

s = (input().split(' '))

a,b = [int(i) for i in s]

price = 0

if 0 <= a <= 5:
    price = 0
elif 5 < a <= 12:
    price = b // 2
else:
    price = b

print(price)

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 > 12:
  c = b
elif 5 < a <= 12:
  c = 0.5 * b
elif 0 <= a <= 5:
  c = 0

print(round(c))

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(_) for _ in 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(int(B))
elif A >= 6 and A <= 12:
    print(int(B / 2))
else:
    print(int(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 >= 6:
  print(int(B/2))
else:
  print(0)

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

Solution (Python):
def calc():
    list = input().split()
    a = int(list[0])
    b = int(list[1])
    if a >= 13:
        print(b)
    elif a >= 6:
        print(int(b/2))
    else:
        print(0)


if __name__ == '__main__':
    calc()

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 >= 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 6 <= a <= 12:
    print(b // 2)
else:
    print(0)

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

Solution (Python):



INT = list(map(int,input().split()))
A,B = INT[0],INT[1]

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

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

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 6 <= A <= 12:
    print(B//2)
else:
    print(0)

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

if(A>12):
    C = 1 
elif A > 5 :
    C = 0.5 
else:
    C = 0

print(int(B*C))

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

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

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

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

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):
import sys

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

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

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):
a,b=map(int,input().split())

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

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

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

Solution (Python):


import sys
input = sys.stdin.readline

def io_generator():
	return input()

def iil(a_io):
	return map(int, a_io().split())





def main(io):
	a,b=iil(io)
	if a <= 5:
		return 0
	elif a <= 12:
		return b//2
	return b



if __name__ == "__main__":
	io= lambda : io_generator()
	ret = main(io)
	if ret is not None:
		print(ret)

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  = list(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(' '))
 
result = 0
if A < 6:
  result = 0
elif A < 13:
  result = B // 2
else:
  result = B
 
print(result)

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

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

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

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

if A >= 13:
    cost = B

if 6 <= A <= 12:
    cost = int(B/2)

if A <= 5 :
    cost = 0

print(cost)

Solution (Python):
def years():
  A=list(map(int,input().split()))
  c=0
  a=A[0]
  b=A[1]
  
  if b<=1 or (b%2!=0) or a<0:
    return
  
  
  if a>=13:
    print(b)
    
  if a>=6 and a<=12:
    b=b/2
    print(int(b))
    
  if a<=5:
    print(c)
    
    
if __name__=="__main__":
  years()

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

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

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

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

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

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

Solution (Python):
A, B = [int(x) for x in 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>=6:
    print(int(b/2))
else:
    print(0)

Solution (Python):
inp = input()

a = int(inp.split()[0])
b = int(inp.split()[1])

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

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

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

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

Solution (Python):
a, b = (int(x) for x in input().split())
if a <= 5:
  b = 0;

elif(a >= 6 and a <= 12):
  b /= 2;

print(int(b))

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

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

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

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

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

Solution (Python):
a,b = map(int,input().split())
if a >= 13:
    print(str(b))
elif a >= 6:
    print(str(int(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):
l = list(map(int, input().split()))
age = l[0]
price = l[1] 
if age >= 13:
    print(price)
if 13 > age >= 6 :
    print(int(price/2))
if 6 > age:
    print(0)

Solution (Python):



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

ans = b
if 6 <= a <= 12:
        ans = b//2
elif a <= 5:
        ans = 0

print(ans)

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):
age,price = map(int,input().split())
if age >= 13:
  print(price)
elif age <= 5:
  print("0")
else:
  p=price/2
  print(int(p))

Solution (Python):

import sys



def solve(lines):
    A,B = map(int, lines.pop(0).split(' '))
    if A >= 13:
        print(B)
    elif A >= 6:
        print(B // 2)
    else:
        print(0)







lines = [x.strip() for x in sys.stdin.readlines()]




solve(lines)

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 (A >= 6):
  print(B // 2)
else:
  print(0)

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

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

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

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

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

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

print(int(a))

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 > 12:
  print(B)
elif 5 < A <= 12:
  print(int(B/2))
else:
  print(0)

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

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):
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>12:
    ans = B
elif A>5:
    ans = B/2
else:
    ans = 0
print(int(ans))

Solution (Python):
tmp = input()
nu = tmp.rfind(' ')

Age = tmp[:nu:]
Bill = tmp[nu+1::]

Age = int(Age)

if(Age >= 13):
  print(int(Bill))
elif(Age <= 12):
  if(Age >= 6):
    print(int(int(Bill) / 2))
  else:
    print(int(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>12:
    ans = B
elif A>5:
    ans = B/2
else:
    ans = 0
print(int(ans))

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

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

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

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

print(int(price))

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

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


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

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

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

Solution (Python):

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

    if 6<=A<=12:
        B = B/2
    elif A<6:
        B = 0
    print(int(B))
if __name__ == '__main__':
    main()

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(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<13:
  if 5<a:
    print(b//2)
  else:
    print(0)
else:
  print(b)

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

Solution (Python):
i=list(map(int,input().split()))
if i[0]>=13:
  print(i[1]) 
elif i[0]>=6:
  print(int(i[1]/2))
else:
  print("0")

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

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

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

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

Solution (Python):
N,M=list(map(int,input().split()))
if N<=5:
    print(0)
elif N<13:
    print(int(M/2))
else:
    print(M)

Solution (Python):
read=input();
A,B=read.split(' ')
A=int(A)
B=int(B)
if A>12:
  print(B);
elif A>5:
  print(int(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())

ans = 0

if A >= 13:
    ans = B
elif A >=6 and A <=12:
    ans = int(B / 2)
elif A <= 5:
    ans = 0

print(ans)

Solution (Python):
def ferris_wheel(A: int, B: int)->int:
    if A >= 13:
        return B
    elif A >= 6:
        return B//2
    else:
        return 0


if __name__ == "__main__":
    A, B = map(int, input().split())

    ans = ferris_wheel(A, B)
    print(ans)

Solution (Python):
num = input().split()
x = int(num[0])
y = int(num[1])

if 6 <= x <= 12:
    y = y//2
elif x <= 5:
    y = 0

print(y)

Solution (Python):

 
cmdvar=input()
in_plited=cmdvar.split()

A_age=int(in_plited[0])
B_fee=int(in_plited[1])

if A_age>=13:
    print(B_fee)
elif A_age>=6 and A_age<=12:
    print(int(B_fee/2))
elif A_age <= 5:
    print(0)
else:
    print("error")

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 <= 5:
    print(0)
elif A <= 12:
    print(int(B / 2))
else:
    print(B)

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

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

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

print(int(cost))

Solution (Python):
a,b=list((map(int,input().split())));print(b) if a>12 else print(int(b/2*bool(int(a/6))))

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):

import sys


def solve(A: int, B: int):
    if A <= 12:
        B = B // 2
    if A <= 5:
        B = 0
    print(B)
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    solve(A, B)

if __name__ == '__main__':
    main()

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

Solution (Python):


import sys

debug = False

def log(text):
    if debug:
        print(text)

def parse_input(lines_as_string = None):

    global debug
    lines = []
    if lines_as_string is None:
        debug = False
        lines.append(input())
    else:
        debug = True
        lines = [e for e in lines_as_string.split("\n")][1:-1]


    token = lines[0].split()
    a = int(token[0])
    b = int(token[1])

    return (a, b)


def solve(a, b):

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




def main():
    

    print("%s" % solve(*parse_input()))

if __name__ == '__main__':

    main()

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

Solution (Python):
a,b=input().split()
A = int(a)
B = int(b)
fee = B
half_fee = int(B/2)

ans = int()

if 0 <= A <= 5:
    ans = 0
elif 6 <= A <= 12:
    ans = half_fee
else:
    ans = fee

print(ans)

Solution (Python):
from sys import stdin
data = stdin.readline().rstrip().split()
A,B = int(data[0]), int(data[1])

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

Solution (Python):
x = list(map(int, input().split()))
year = x[0]
money = x[1]
if year >= 13:
         print(money)
elif 12 >= year >= 6:
         print(int(money / 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 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>5 and a<13:
    print(round(b/2))
else:
    print(0)

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

age = inputs[0]
price = inputs[1]

if 6 <= age and age < 13:
    price /= 2
elif age <= 5:
    price = 0

print(int(price))

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

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

Solution (Python):


import sys

s2nn = lambda s: [int(c) for c in s.split(' ')]
ss2nn = lambda ss: [int(s) for s in list(ss)]
ss2nnn = lambda ss: [s2nn(s) for s in list(ss)]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n: [i2s() for _ in range(n)]
ii2nn = lambda n: ss2nn(ii2ss(n))
ii2nnn = lambda n: ss2nnn(ii2ss(n))

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

main()

Solution (Python):
A, B = map(lambda x: int(x), 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 >= 13:
  print(b)
elif 6 <= a and a <= 12 :
  print(b//2)
else :
  print(0)

Solution (Python):

inputData = input()
age, price = map(int, inputData.split())

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

print(int(ans))

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

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

Solution (Python):
a, b = (int(i) for i in 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 6<=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 < 6:
    print(0)
elif 6 <= A <13:
    print(B//2)
else:
    print(B)

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 = input().split()
A = int(A)
B = int(B)
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 int(b/2) if a<=12 else b)

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

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

if A >= 13:
    ans = B
elif A >= 6:
    ans = B // 2
else:
    ans = 0

print(ans)

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(int(b/2))
else:
	print(b)

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(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 = list(map(int, input().split()))
if 5 >= a:
  print(0)
elif 6 <= a <= 12:
  print(b//2)
else:
  print(b)

Solution (Python):


A, B = [int(i) for i in 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 6<=A<=12:B//=2
if A<6:B=0
print(B)

Solution (Python):

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

Solution (Python):

import math

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

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



print(math.floor(c))

Solution (Python):
import numpy as np

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

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

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=input().split()
if int(a) >= 13 :
    print(int(b))
if int(a) >= 6 and int(a) <=12 :
    print(round(int(b) / 2))
if int(a) <= 5 :
    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(b)
elif a>=6:
    print(int(b/2))
else:
    print(0)

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

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

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

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(_) for _ in input().split()]
if a >= 13:
    print(b)
elif 6 <= a <= 12:
    print(b//2)
else:
    print("0")

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

if A<6: print 0
elif A<13: print B/2
else: print B

Solution (Python):
from sys import stdin
import math
import itertools


def makeIntMatrix(lines):
    intMatrix = []
    for a in makeStringMatrix(lines):
        intMatrix.append([int(b) for b in a])
    return intMatrix
 
 
def makeStringMatrix(lines):
    stringMatrix = [line.split() for line in lines]
    return stringMatrix
 
 
def makeInt(line):
    return int(line.rstrip())
 
 
def makeMultiInteger(line):
    return [int(x) for x in line.rstrip().split()]


def solve(input_string):
    a, B = makeMultiInteger(input_string[0])
    
    
    if a >= 13:
        return B
    elif (a >= 6 and a < 13):
        return B//2
    else:
        return 0


def main():
    input_lines = stdin.readlines()
    answer = solve(input_lines)
    print(answer)


if __name__ == '__main__':
    main()

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

if 6 <= a:
    if 13 <= a:
        print(b)
        exit()
    print(int(b / 2))
    exit()
print(0)

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

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

listInt = [int(i) for i in input]

if listInt[0] >= 13:
	print(listInt[1])
elif listInt[0] > 5:
	print(int(listInt[1] / 2))
else:
	print(0)

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

Solution (Python):
A, B = [int(item) for item in 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 6 <= a <= 12:
    print(b // 2)
else:
    print(b)

Solution (Python):
year_old, fair = map(int, input().split())

if year_old >= 13:
  print(fair)
elif 6 <= year_old < 13:
  print(int(fair / 2))
else:
  print(0)

Solution (Python):
A,B = (int(i) for i in input().split()) 
C=B/2
if A >= 13 :
  print( '%d' % B )
elif A<=12 and A>=6 :
  print( '%d' % C )
else:
  print( '0')

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

main()

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):




import itertools
import functools

def main():
    
    a, b = [int(s) for s in input().split()]
    
    if a >= 13:
        ans = b
    elif 6 <= a <= 12:
        ans = b//2
    elif a <= 5:
        ans = 0
    
    print(ans)

if __name__ == '__main__':
    main()

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

print(X)

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:
  result = b
elif 6 <= a <= 12:
  result = b // 2
else:
  result = 0
print(result)

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

Solution (Python):
A,B = (int(x) for x in input().split())

if A >= 13:
	ans = B
elif A >= 6:
	ans = B / 2
else:
	ans = 0

print(int(ans))

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

if 13 <= A:
    print(B)

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

else:
    print(0)

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

Solution (Python):
AB = input().split()
A = int(AB[0])
B = int(AB[1])

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

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

if A >=13:
    print(B)
elif A >=6:
    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 <= 5:
    c = 0
elif a <= 12:
    c = int(b / 2)
else:
    c = b

print(c)

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):
def main():
    A, B = map(int, input().split())
    if A > 12:
        print(B)
    elif A > 5:
        print(int(B / 2))
    else:
        print(0)
 
 
if __name__ == '__main__':
    main()

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

Solution (Python):
N, K = map(int, input().split())
if N >= 13:
    print(K)
elif N >= 6:
   K = K // 2
   print(K)
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:
    ans = B
elif A<=5:
    ans = 0
else :
    ans = B/2

print(int(ans))

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 = [int(x) for x in input().split()]
if A<=5:
    print(0)
elif 6 <= A and A <= 12:
    print(int(B/2))
else:
    print(B)

Solution (Python):

age, price = list(map(int, input().split()))


if age <= 5:
    price = 0
elif 6 <= age <= 12:
    price = int(price / 2)


print(price)

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

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

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

print(b)

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

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

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())

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

Solution (Python):
d = input().split(" ")
A = int(d[0])
B = int(d[1])
 
if(A >= 13):
  money = B
elif(A >= 6):
  money = B/2
else:
  money = 0
    
print(int(money))

Solution (Python):
A, B = map(int, input().split())
if A > 12.5:
  print(B)
elif A > 5.5:
  print(int(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):


def solv(a, b):
    if a >= 13:
        return b
    elif a >= 6:
        return b // 2
    else:
        return 0


if __name__ == '__main__':

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

    ans = solv(a, b)

    print(ans)

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>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:
    print(int(B/2))
else:
    print(0)

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

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

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

Solution (Python):
ab = input().split()
if (int(ab[0]) >= 13):
    print(int(ab[1]))
elif (int(ab[0]) <= 5):
    print(0)
else:
    print(int(ab[1])//2)

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

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

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