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

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


abc()

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

Solution (Python):

n=[int(i) for i in input().split()]
if(n[0]>12):
  print(n[1])
elif(n[0]>5):
  print(int(n[1]/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(int(b/2))
elif  a <= 5:
    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(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):

import sys
import math
import numpy as np
import itertools



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

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

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

Solution (Python):


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

	main()

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

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

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

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

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

if A>=13:
    print(B)
elif (6<=A)&(A<=12):
    print(int(0.5*B))
else:
    print(0)

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

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

Solution (Python):



from sys import stdin

age, value = [int(x) for x in stdin.readline().rstrip().split()]


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

Solution (Python):



a_b = input()

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

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 >= 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:
  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=(int(i) for i in input().split(" "))
if A>=13:
    print(B)
elif A>=6:
    print(int(B/2))
else:
    print(0)

Solution (Python):
age,cost = map(int,input().split())
if age <=12 and age >=6:
    cost /= 2
elif age <6:
    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 = map(int,input().split())
if (0 <= a <= 100 and 2 <= b<= 1000 and b % 2 ==0):
   if 13 <= a <= 100:
       print(b)
   elif 6 <= a <= 12:
       print(int(b/2))
   else:
       print(0)

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

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

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

def jugde(A,B):
  if A >= 13:
    return B
  elif A >=6:
    return B//2
  else:
    return 0

print(jugde(A,B))

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<=5:
  print(0)
else:
  print(int(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):
A,B=map(int,input().split())
ans=0

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

print(ans)

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

print(fee)

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

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

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

Solution (Python):
age, price = map(int, input().split())
print(price * (min(1, age//13) + min(1, age//6)) // 2)

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


b = []
for i in a:
  b.append(int(i))

age, price = b

if age >= 13:
  print(price)
elif age >= 6:
  print(price//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())
print([b,b//2,0][(13>a)+(6>a)])

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):
def main():
    a,b = [int(i) for i in input().split()]
    if 13 <= a:
        print(b)
    elif 6 <= a <= 12:
        print(b//2)
    else:
        print(0)

if __name__ == '__main__':
    main()

Solution (Python):


if __name__ == '__main__':
    a, b = list(map(int, input().split()))

    if a >= 13:
        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 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 > 5) &(A < 13):
	print B/2
else:
	print B

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

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(x) for x in 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 ( A >= 6 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(b//2)
else:
  print(0)

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

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

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

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

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

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

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())
ans=0
if(a>=13):
  ans=b
elif(a<=12)and(a>=6):
  ans=b//2
elif(a<=5):
  ans=0
  
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))
elif a <= 5:
    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 12 >= 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 = [int(x) for x 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 >= 13:
	print(b)
if 6 <= a <= 12:
	print(int(b/2))
if a <= 5:
	print(0)

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

def ferris_wheel(age, fee):
    if 6 <= age <= 12:
        fee //= 2
    elif age <= 5: 
        fee = 0
    print(fee)


def main():
    a,b = [int(i) for i in input().split()] 
    ferris_wheel(a,b)
    

if __name__ == "__main__":
    main()

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):
def solve():
    takaYear, defaultFee = map(int, input().split())
    if takaYear <= 5:
        print(0)
    elif takaYear <= 12:
        print(defaultFee//2)
    else:
        print(defaultFee)
solve()

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):
nums = [int(e) for e in input().split()]

a = nums[0]
b = nums[1]
result = 0

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

print(result)

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

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

Solution (Python):

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

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

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

Solution (Python):
a, b = map(int, 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(b)
elif a<=5:print(0)
else:print(int(b/2))

Solution (Python):
a = list(map(int, input().split()))
age = a[0]
yen = a[1]

if age <= 5:
    yen = 0
elif 6 <= age <= 12:
    yen /= 2

print(int(yen))

Solution (Python):
A, B = list(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 <= 5:
    print("0")
else:
    print(int(b/2))

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

main()

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

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

Solution (Python):
import sys


scan = sys.stdin.readline


def main():
  A, B = map(int, scan().rstrip().split())
  if A > 12:
    print(B)
  elif A > 5:
    print(B // 2)
  else:
    print(0)

main()

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

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

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

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

print (output)

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

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

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

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

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

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

Solution (Python):
import sys
inp = list(map(int,input().split()))
A, B = inp[0], inp[1]
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(int(B))
if 6<=A and A<=12:
    print(int(B/2))
if A<=5:
    print(int(0))

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

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

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

if 13<=A:
    print(int(B))
if 6<=A and A<=12:
    print(int(B/2))
if A<=5:
    print(int(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(int(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):

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 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 = [int(ab) for ab in 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 <= 5:
  print(0)
elif 6 <= a <= 12:
  print (b // 2)
else:
  print(b)

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

a, b = map(int, input().split())
print(solve(a, 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(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(int(b/2))
else:
  print(0)

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

Solution (Python):

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

if A<=5:
    print('0')
elif 13<=A:
    print(int(B))
else:
    print(int(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):
age, cost = [int(x) for x in input().split()]

if age <= 5:
  print(0)
elif age <= 12:
  print(int(cost / 2))
else:
  print(cost)

Solution (Python):
a,b=map(int,input().split())
if 6 <= a <= 12: 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 and A<=12:
    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):
a,b = map(int,input().split())

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

Solution (Python):

import sys


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

Solution (Python):
A,B = list(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:
	ans=0
elif 6<=A<=12:
	ans=B//2
else:
	ans=B
	
print(ans)

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

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

Solution (Python):
A, B = [int(_) for _ in 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 <= 5:
    print(0)
elif A >= 13:
    print(B)
else:
    print(B//2)

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

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

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

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

N, K  = map(int, input().split())

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

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


if __name__ == '__main__':
	main()

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

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

Solution (Python):
from sys import stdin
a, b = [int(x) for x in stdin.readline().rstrip().split()]
ans = b
if a < 6:
    ans = 0
elif a < 13:
    ans = b // 2
print('{}'.format(ans))

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

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

Solution (Python):






import sys

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





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

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

Solution (Python):


import sys
sys.dont_write_bytecode = True
stdin = sys.stdin
input = stdin.readline







import math, itertools, operator
from math import *
from math import factorial as fact
from operator import itemgetter, attrgetter
from itertools import permutations, combinations
from functools import reduce


from fractions import gcd
from fractions import Fraction as Frac

inf = float('inf')

def lcm(a, b):
    return a * b // gcd(a,b)

def perm(a, b):
    import scipy.special
    return scipy.special.perm(a, b, exact = True)

def comb(a, b):
    import scipy.special
    return scipy.special.comb(a, b, exact = True)

def dfact(n):
    import scipy.special
    return scipy.special.factorial2(n, exact = True)

def prod(l):
    return reduce(operator.mul, l)

def input_ints(inp = input, sep = ' ', conv = int):
    return list(map(conv, inp().split(sep = sep)))



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

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

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

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

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

def price(A,B):
    if A >= 13:
        print(B)
    elif 6 <= A <=12:
        print(int(B/2))
    elif 5 >= A:
        print('0')
        
price(A,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):
value = input().split()
age = int(value[0])
cost = int(value[1])

if(age >= 6 and age<= 12):
    result = cost // 2
elif(age <= 5):
    result = 0
else:
    result = cost

print(result)

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

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

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):
value = input().split()
age = int(value[0])
cost = int(value[1])

if(age >= 6 and age<= 12):
    cost = cost // 2
elif(age <= 5):
    cost = 0

print(cost)

Solution (Python):
def calculate(age, price):
  if age >= 13:
    return price
  elif age >= 6:
    return int(price / 2)
  else:
    return 0
  
  
import sys
 
a=0
b=0
is_arg_ok = False
try:
  num_list = input().split(' ')
  age = int(num_list[0])
  price = int(num_list[1])
  is_arg_ok = True
  
except:
  print('age,price must be numbers')
  sys.exit(1)

calculated_price = calculate(age, price)
print(calculated_price)
sys.exit(0)

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

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

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

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

if 0 <=A<=100 and 2<=B<=1000:
    if B%2 == 1:
        print("ERROR")
        exit()
    else :
        if A <=5 :
            fare=0
        elif 6<=A<=12 :
            fare=B//2
        else:
            fare=B
else:
    print("ERROR")
    exit()

print(fare)

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

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

if 0 <=A<=100 and 2<=B<=1000:
    if B%2 == 1:
        print("ERROR")
        exit()
    else :
        if A <=5 :
            fare=0
        elif 6<=A<=12 :
            fare=B//2
        else:
            fare=B
else:
    print("ERROR")
    exit()

print(fare)

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

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

Solution (Python):
import math
import fractions
import copy

def j(q):
    if q==1: print("YES")
    elif q == 0:print("NO")
    exit(0)
rem = pow(10,9)+7
"""
def ct(x,y):
    if (x>y):print("+")
    elif (x<y): print("-")
    else: print("?")
"""

def ip():
    return int(input())
def printrow(a):
    for i in range(len(a)):
        print(a[i])
def combinations(n,r):
    if n<r:return 0
    return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))
def permutations(n,r):
    if n<r:return 0
    return math.factorial(n) // math.factorial(n - r)
def lcm(x, y):
    return (x * y) // fractions.gcd(x, y)



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









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

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

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

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

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

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

Solution (Python):
inputstr1 = input().split()
age = int(inputstr1[0])
b = int(inputstr1[1])

cost = (0 if 0 <= age <= 5 else
        b / 2 if 6 <= age <= 12 else
        b)
print(int(cost))

Solution (Python):
inputstr1 = input().split()
age = int(inputstr1[0])
b = int(inputstr1[1])

if 0 <= age <= 5:
    cost = 0
elif 6 <= age <= 12:
    cost = b / 2
else:
    cost = b

print(int(cost))

Solution (Python):
inputstr1 = input().split()
age = int(inputstr1[0])
b = int(inputstr1[1])

if 0 <= age <= 5:
    cost = 0
elif 6 <= age <= 12:
    cost = b / 2
else:
    cost = b

print("{:.0f}".format(cost))

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