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

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


if a>=13:
  print(b)
elif a>=6 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 >= 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())

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

print(ans)

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

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

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

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

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

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

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

print(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 = map(int,input().split())
print(B) if A>=13 else print(int(B*0.5)) if 6<=A<=12 else print(0)

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

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

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

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

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

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

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

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

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

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

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

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

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

if __name__ == '__main__':
    main()

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

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

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

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

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

if A >= 13:
    print(B)

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

elif 5 >= A:
    print(0)

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

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

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

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

Solution (Python):
rStr = input()

A = int(rStr.split(' ')[0])
B = int(rStr.split(' ')[1])

result = 0

if 13 <= A :
    result = B

elif A <= 5 :
    result = 0

else :
    result = int(B / 2)

print(result)

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

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

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

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

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

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

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

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

Solution (Python):
def solver():
    A, B = [int(n) for n in input().split()]
    if A <=5:
      return 0
    if 6 <= A <= 12:
      return B//2
    if 13 <= A:
      return B

if __name__=='__main__':
  print(solver())

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

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

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

m = 0

if a>12:
    m = b
elif a>5:
    m = b//2

print(m)

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

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

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

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

Solution (Python):


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

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

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

elif A >= 13:
	print(B)

else:
	print(int(B/2))

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

Solution (Python):
import sys
def MI(): return map(int,sys.stdin.readline().rstrip().split())


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

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

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

print(ans)

Solution (Python):
import sys

A, B = map(int, sys.stdin.readline().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):
def main():
    A,B = map(int,input().split())
    if A >= 13:
        return B
    elif 6 <= A <= 12:
        return int(B/2)
    else:
        return 0

print(main())

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

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

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

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

if __name__ == "__main__":
    main()

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

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

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

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


A, B = LI()
if A >= 13:
    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)
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):
import sys

sys.setrecursionlimit(10**7)
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))  
def LI2(): return list(map(int,sys.stdin.readline().rstrip()))  
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())  
def LS2(): return list(sys.stdin.readline().rstrip())  



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

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

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

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

Solution (Python):
a,p = map(int,input().split())
if a >= 13 :
  print(p)
elif a >= 6 :
  print(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 >= 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 <= 12:
  C = B / 2
  print(int(C))
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):
def mapt(fn, *args):
    return list(map(fn, *args))


def Input():
    return mapt(int, input().split(" "))


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

main()

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

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

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

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

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

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

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

    print(ans)


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))
elif A <= 5:
    print(0)

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

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

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

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

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

ans = b

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

print(ans)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
a = [int(s) for s in input().split()]
if a[0] > 12:
  print(a[1])
elif a[0] > 5:
  print(int(a[1] / 2))
else:
  print("0")

Solution (Python):
import sys
sys.setrecursionlimit(10**9)

def mi(): return map(int,input().split())
def ii(): return int(input())
def isp(): return input().split()
def deb(text): print("-------\n{}\n-------".format(text))

INF=10**20
def main():
    A,B=mi()
    if A <= 5:
        print(0)
    elif 6<=A<=12:
        print(B//2)
    else:
        print(B)




if __name__ == "__main__":
    main()

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

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


if __name__ == "__main__":
    main()

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

print(fee)

Solution (Python):



age,cost = map(int,input().split())

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

print(cost)

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

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

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

print(int(ans))

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

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

if __name__=='__main__':
    a,b=readinput()
    ans=main(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())
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<=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())

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

stdin = sys.stdin
def ns(): return stdin.readline().rstrip()
def ni(): return int(stdin.readline().rstrip())
def nm(): return map(int, stdin.readline().split())
def nl(): return list(map(int, stdin.readline().split()))


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

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

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

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

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

cost = 0

if age >= 13:
    cost = yen
elif age >= 6 and age <= 12:
    cost = yen/2

elif age <= 5:
    cost = 0

print(int(cost))

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

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



if __name__ == "__main__":
    main()

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

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

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

ans = 0

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

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

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

Solution (Python):
import re
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def v(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7
cnt = 0
ans = 0
inf = float("inf")

a,b=I()
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 >= 13:
    print(B)
else:
    print(B // 2)

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

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

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

Solution (Python):



A, B = map(int, input().split())
if A <= 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 6 <= A <= 12 else 0)

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

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

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

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

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

print(res)

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

if age >= 13:
  print(fee)
elif age >= 6:
  print(int(fee/2))
else:
  print(0)

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

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

if(a <= 5):
    print(0)
    exit()

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

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

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

Solution (Python):
import sys

def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())

A,B = LI()

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=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)
elif a<=5:
    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):
n=input().split()
A=int(n[0])
B=int(n[1])

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

Solution (Python):


def main():

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

    if A >= 13:
        ans = B

    elif 6 <= A <= 12:
        ans = B / 2

    elif A <= 5:
        ans = 0

    print(int(ans))


if __name__ == "__main__":
    main()

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