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):
def resolve():
    A,B = map(int,input().split())

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

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

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

import heapq
import copy
def main(): 
    A,B = map(int,input().split())
    if A <= 5:
        print(0)
    elif A<=12:
        print(B//2)
    else:
        print(B)
            
if __name__ == "__main__":
    main()

Solution (Python):
year, money = map(int, input().split())

if year >= 13:
    print(money)
elif year >= 6:
    print(int(money/2))
else:
    print(0)

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

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

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

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

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

Solution (Python):
a, b = map(int, input().split())
if 0 <= a <= 100 and 2 <= b <= 1000 and 0 == b % 2:
    if 13 <= a:
        print(b)
    elif 6 <= a < 13:
        print(int(b/2))
    else:
        print(0)
else:
    print('Invalid value')

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

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

if __name__ == '__main__':
    print(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 <= 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):

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

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

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

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

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

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

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

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

Solution (Python):


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

if __name__ == '__main__':
    print(int(main()))

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 <= 12:
    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 = b // 2

print(ans)

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

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

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

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

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

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

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

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

Solution (Python):

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

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

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

Solution (Python):
list1 = [i for i in input().split()]

num1 = int(list1[0])
num2 = int(list1[1])

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

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

Solution (Python):

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

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

print(ans)

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

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

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

res=c

if y<=5:
	res=0
else:
	if y<=12:
		res=c//2

print(res)

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

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

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

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

Solution (Python):

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

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

Solution (Python):

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


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

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

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


if __name__ == "__main__":
    test()

Solution (Python):
a,b = map(int, input().split())
if a > 12:
    print(b)

elif 13 > a > 5:
    print(b//2)

else:
    print(0)

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

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


if __name__ == "__main__":
    print(solve())

Solution (Python):
a = []
a = input().split()

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

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

Solution (Python):

input = input().split()


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


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

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):
inp = input().split()
a, b = int(inp[0]), int(inp[1])

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

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

if temp[0]>12:
  print(temp[1])
elif temp[0]<6:
  print(0)
else:
  print(int(temp[1]/2))

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

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

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

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

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

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

print(cost)

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

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

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

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

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

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

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

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

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

Solution (Python):

A, B = (int(_) for _ in input().split())
if A <= 5:
    print(0)
elif A < 13:
    print(int(B / 2))
else:
    print(B)

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

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

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

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

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

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

print(fee)

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

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

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

Solution (Python):


import os
import sys


A, B = map(lambda x: int(x), 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 >= 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(int(B))
if A <= 5:
  print(int(0))
if 6<= A <=12:
  print(int(B/2))

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

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

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

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

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

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

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

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

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


if __name__ == "__main__":
    main()

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

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

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

if age >= 13:
  print( '{0}'.format( price ) )
elif age >= 6:
  
  print( '%d' % (price / 2)  )
else:
  print( 0 )

Solution (Python):


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

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

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

Solution (Python):
a, b = [int(_) for _ 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>=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());print(b*(a>12)+b*(5<a<13)//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())
if a >= 13:
    print(b)
elif a >= 6:
    print(b//2)
else:
    print(0)

Solution (Python):
i = input().split(" ")
year = int(i[0])
fee = int(i[1])

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

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



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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
def main20():
    data = input().split()
    num = []
    for i in range(2):
        num.append(int(data[i]))
    if num[0] >= 13:
        print(num[1])
    elif num[0] >= 6:
        print(int(num[1]/2))
    else:
        print(0)

if __name__ == "__main__":
    main20()

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

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

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

if a <= 5:
    print(0)
elif 5 < 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):
age, coin = map(int, input().split())

if age < 6:
    print(0)
elif age < 13:
    print(coin // 2)
else:
    print(coin)

Solution (Python):
import numpy as np

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 <= 12:
    b //= 2
if a <= 5:
    b = 0

print(b)

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

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

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

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

print(B)

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

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

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

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

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

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

Solution (Python):

from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS():return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = I()
    return l
def LIR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LI()
    return l
def SR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = S()
    return l
def LSR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = SR()
    return l
sys.setrecursionlimit(1000000)
mod = 1000000007



def A():
    a,b = LI()
    if a > 12:
        print(b)
    elif a > 5:
        print(b//2)
    else:
        print(0)
    return


def B():
    return


def C():
    n,m = LI()
    t = [0 for i in range(n+1)]
    for i in range(m):
        l,r = LI()
        t[l-1] += 1
        t[r] -= 1
    for i in range(n):
        t[i+1] += t[i]
        if t[i] == m:
            t[i] = 1
        else:
            t[i] = 0
    print(sum(t[:n]))
    return


def D():
    n,m = LI()
    a = LI()
    q = []
    for i in range(n):
        heappush(q,a[i])
    l = LIR(m)
    l.sort(key = lambda x:-x[1])
    for b,c in l:
        for i in range(b):
            x = heappop(q)
            if x < c:
                x = c
                heappush(q,x)
            else:
                heappush(q,x)
                break
    print(sum(q))
    return


def E():
    n,m,k = LI()
    M = n*m
    fact = [1]*(M+1)
    for i in range(M):
        fact[i+1] = fact[i]*(i+1)%mod
    inv = [1]*(M+1)
    inv[M] = pow(fact[M],mod-2,mod)
    for i in range(M)[::-1]:
        inv[i] = inv[i+1]*(i+1)%mod
    ans = fact[M-2]*inv[k-2]*inv[M-k]%mod
    s = 0
    for i in range(M):
        s += i*(max(0,n-i)*m**2+max(0,m-i)*n**2)%mod
        s %= mod
    ans = ans*s%mod
    print(ans)
    return


def F():
    q = I()
    m = 0
    l = [-float("inf"),float("inf")]
    x = 0
    num = 0
    for _ in range(q):
        Q = LI()
        if len(Q) == 1:
            print(x,m)
        else:
            z,a,b = Q
            m += b
            if num == 0:
                num += 1
                l = [a,float("inf")]
                x = a
            elif num == 1:
                if a != l[0]:
                    num += 1
                    l = [min(a,l[0]),max(a,l[0])]
                    x = l[0]
                    m += l[1]-l[0]
            else:
                num += 1
                if num % 2:
                    if l[0] <= a < l[1]:
                        m += min(a-l[0],l[1]-a)
                        x = a
                    elif a < l[0]:
                        m += l[0]-a
                        x = l[0]
                        l = [a,l[1]]
                    else:
                        m += a-l[1]
                        x = l[1]
                        l = [l[0],a]
                else:
                    if l[0] <= a < l[1]:
                        if a < x:
                            m += x-a
                            l = [a,x]
                            x = a
                        else:
                            m += a-x
                            l = [x,a]
                    elif a < l[0]:
                        m += x-a
                        x = l[0]
                        l = [l[0],x]
                    else:
                        m += a-x
                        l = [x,l[1]]
    return


def G():
    return


def H():
    return


def I_():
    return


def J():
    return


if __name__ == "__main__":
    A()

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

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

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

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

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

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

print(charge)

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

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