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 = input().split()
nenrei = int(a[0])
nedan = int(a[1])

if nenrei >= 13:
    print(nedan)
elif 6 <= nenrei <= 12:
    print(int(nedan/2))
else:
    print(0)

Solution (Python):

A,B = input().split()

A = int(A)
B = int(B)

if A >= 13:
    print (B)

elif A > 5 :
    print (int(B/2))

else:
    print (0)

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

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

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

if player[0] >= 13:
    print(player[1])
elif 13 > player[0] >= 6:
    print(player[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(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())

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

Solution (Python):


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




if 13 <= A:
    print(int(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)

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

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

Solution (Python):



import math
import statistics

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

Solution (Python):
a, b = [int(x) for x in input().rstrip().split(" ")]
if a >= 13:
  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 12 >= A > 5:
    print(int(B / 2))
else:
    print(0)

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

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

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

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

if A >= 13:
    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<= 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 = [int(elem) for elem in input().split()]

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

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

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

print(int(ans))

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

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

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

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

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

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

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

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

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

Solution (Python):
a,b = list(map(int,input().split()))
print(b*(a >= 13) + int(b/2)*(6 <= a and a <= 12))

Solution (Python):
N, M = input().strip().split()
A, B = [int(N), int(M)]

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

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

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

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))
else:
  print(0)

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

Solution (Python):
a, b = [int(i) for i 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 0 <= a and a <= 5:
    print(0)
if a >= 6 and a <= 12:
    print(b//2)
if a >= 13:
    print(b)

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


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


def main():
    a, b = input_from_console()
    print(solve(a, b))


if __name__ == "__main__":
    import sys
    if sys.gettrace():
        check_cases()
    else:
        main()

Solution (Python):


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


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


if __name__ == '__main__':
    main()

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

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

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

if a <= 12:
        b = b / 2

if a <= 5:
        b = 0

print(int(b))

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

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

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

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

Solution (Python):
ab = input().split()
a = int(ab[0])
b = int(ab[1])

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

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

print(ans)

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

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


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


def main():
    a, b = input_from_console()
    print(solve(a, b))


if __name__ == "__main__":
    DEBUG = False
    if not DEBUG:
        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):
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):
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,raw_input().split())
if a>=13:
 print b
elif a>=6:
 print b/2
else:
 print 0

Solution (Python):
A, B = [int(t) for t in 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(str(B))
elif(6 <= A <= 12):
	print(str(int(B/2)))
elif(A <= 5):
	print(str(0))

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

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

print(int(ans))

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 < 6 :
    ans = 0
elif A <= 12 :
    ans = B//2
else :
    ans = B

print(ans)

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

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

Solution (Python):

a, b = list(map(int, input().rstrip().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):
A, B = [int(s) for s in input().split()]

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

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

Solution (Python):
a, b = list(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())
C = 0
if A >= 13:
  C = B
else:
  if A >= 6:
    C = B // 2
print(C)

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

Solution (Python):
def abc127a():
    A, B = (int(s) for s in input().split(" "))
    answer = int(0 if A <= 5 else B / 2 if A <= 12 else B)
    print(answer)

def main():
    abc127a()

main()

Solution (Python):

import sys


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

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

Solution (Python):
s=input().split()
a=int(s[0])
b=int(s[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 > 12:
    print(B)
elif 6<=A:
    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());print(b//-~(a<13)*(a>5))

Solution (Python):
import sys

A, B = map(lambda x: int(x), sys.stdin.readline().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:
  c=b
elif a>=6:
  c=b/2
else:
  c=0
print(int(c))

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

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

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

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

Solution (Python):
a,b=map(int,input().split());print(b//-~(a<13)*(a>5))

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):
str = input().split()

A = int(str[0])
B = int(str[1])

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

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

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

Solution (Python):
import sys
A,B= (int(i) for i in input().split(" "))  

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

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

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

Solution (Python):

def f():
    A, B = map(int, input().split())
    if A >= 13:
        return B
    elif A >= 6:
        return B // 2
    else:
        return 0


print(f())

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

Solution (Python):
def spaceinput():
    return list(map(int,input().split(" ")))


A,B=spaceinput()

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

Solution (Python):
import sys

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

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

print(int(b))

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

import math
if a>=13:
  print(b)
elif a<=5:
  print(0)
else:
  c=math.floor(b/2)
  print(c)

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

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

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

print(ans)

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

Solution (Python):


import sys

A, B = map(int, sys.stdin.readline().split(" ", 2))
if A >= 13:
    print("%d"%B)
elif A >= 6:
    print("%d"%(B/2))
else:
    print("%d"%0)

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

Solution (Python):
(N,M) = (int(i) for i in input().split(" "))
print(int(0 if N < 6 else M if N > 12 else M/2))

Solution (Python):

import sys


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



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

old, yen = input().split()

if int(old) >= 13 :
    print(yen)
elif int(old) >= 6 :
    print(int(int(yen)/2))
else :
    print(0)

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

Solution (Python):
import math

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

if 6<=a<=12:
    print(math.ceil(b/2))

elif a>=13:
    print(math.ceil(b))

else:
    print("0")

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

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

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

Solution (Python):
import numpy as np
from sys import stdin


def main():
    a, b = [int(x) for x in stdin.readline().rstrip().split()]
    if 6 <= a and a <= 12:
        v = b//2
    elif a <= 5:
        v = 0
    else:
        v = b
    print(v)

if __name__ == "__main__":
    main()

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

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

if age >= 13:
    print(teenPrice);
elif age >= 6 and age <= 12:
    print(int(teenPrice / 2));
else:
    print(0);

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


if __name__ == '__main__':
    main()

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

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

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

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

Solution (Python):


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

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

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

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

ferris(a, b)

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

A = int(A)
B = int(B)

if A < 13 and A > 5 :
    B /= 2
elif A < 6 :
    B = 0

print(round(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))
else:
  print(0)

Solution (Python):

import sys

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


if a < 6:
  result = b/2
  print 0
  sys.exit()

if 6 <= a and a <= 12 :
  result = b/2
  print result
  sys.exit()
result = b
print result

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

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

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

Solution (Python):
from sys import stdin

a, b = [int(x) for x in stdin.readline().rstrip().split()]

ans = 0

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

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

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