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

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

Solution (Python):
from collections import deque
from collections import Counter
from itertools import product, permutations,combinations
from operator import itemgetter
from heapq import heappop, heappush
from bisect import bisect_left, bisect_right, bisect




from fractions import gcd
from math import ceil,floor, sqrt, cos, sin, pi, factorial
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10**8)
INF = float('inf')

def main():
  a, b = map(int, readline().split())
  if a>=13:
    print(b)
  elif a>=6 and a<=12:
    print(int(b/2))
  else:
    print(0)
  
  
  
  
if __name__ == '__main__':
  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):
p,q= input().split()
a,b =(int(p), int(q))
if a >= 13:
    print(b)
elif 12 >= a and 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:
  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(B//2)
else:
  print(0)

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

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

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

Solution (Python):
import sys

a, b = map(int, sys.stdin.readline().split())

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

if __name__ ==  '__main__':
    main()

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

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

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

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

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

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

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

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

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

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

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

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

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

print(int(answer))

Solution (Python):
def solve():
    N, M = map(int, input().split())
    if N <= 5:
        return 0
    elif N <= 12:
        return M //2
    else:
        return M

print(solve())

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

Solution (Python):
a,b=map(int,input().split());print(b*((a>5)+(a>12))//2)

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

Solution (Python):
import sys
from bisect import *
from heapq import *
from collections import *
from itertools import *
from functools import *
from math import *

sys.setrecursionlimit(100000000)
input = lambda: sys.stdin.readline().rstrip()

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

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

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

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

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

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

Solution (Python):

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

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

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

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

price = b
if ( 6 <= a ) & ( a <= 12 ):
  price //=2
elif ( a < 6 ):
  price = 0

print(price)

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


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

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

if __name__ == '__main__':
    main()

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

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

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

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

print(ans)

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

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

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

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

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

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

if (6 <= age and age <= 12):
    ans = price // 2
elif (age >= 13):
    ans = price

print(ans)

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

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

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

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
  歳の高橋君が観覧車に乗ろうとしています。

この観覧車は、
13
 歳以上が乗るには
B
 円 (
B
 は偶数) かかりますが、
6
 歳以上
12
 歳以下の人はその半額で乗ることができ、 さらに
5
 歳以下の人は無料で
'''

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

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

Solution (Python):
if __name__ == "__main__":
    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):
N,price = map(int, input().split())

if N >= 13:
  print(price)

elif N >= 6:
  print(price // 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>12:
    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<=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 >= 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 = map(int, input().split())

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

print(ans)

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

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

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

Solution (Python):
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
def input(): return sys.stdin.readline().strip()
def STR(): return input()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def S_MAP(): return map(str, input().split())
def LIST(): return list(map(int, input().split()))
def S_LIST(): return list(map(str, input().split()))
sys.setrecursionlimit(10 ** 9)
inf = sys.maxsize
mod = 10 ** 9 + 7

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

Solution (Python):
import sys

def solve():
    input = sys.stdin.readline
    A, B = map(int, input().split())
    if A <= 5: B = 0
    elif A <= 12: B //= 2
    print(B)

    return 0

if __name__ == "__main__":
    solve()

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


if __name__ == '__main__':
    main()

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

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

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

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

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

print(int(price))

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

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

print(int(b) if a >= 6 else 0)

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

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

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

Solution (Python):









import sys



ipti = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)

def main():
    a, b = list(map(int,ipti().split()))
    
    if a >= 13:
        print(b)
    elif a <= 5:
        print(0)
    else:
        print(b//2)

if __name__ == '__main__':
    main()

Solution (Python):

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

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

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

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

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

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

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

Solution (Python):
def task():
	a=input().split()
	b=int(a[0])
	c=int(a[1])
	if(b>=13):
		print(c)
	elif(b>5):
		print(int(c/2));
	else:
		print(0);		
t=1
while(t>0):
		task()
		t-=1

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

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

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

Solution (Python):
from sys import stdin

a, b = (int(x) for x in stdin.readline().rstrip().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 6 <= A:
    print(B//2) 
else:
    print('0')

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

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

Solution (Python):
age, price = (int(x) for x in input().split(' '))

if age <= 5:
    print('0')
elif 6 <= age <= 12:
    print('{}'.format(price // 2))
else:
    print('{}'.format(price))

Solution (Python):

import sys


def solve(A: int, B: int):
    if A >= 13:
        print(B)
    elif A >=6:
        print(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 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 > 12:
    print(b)
elif 5 < 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(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 = [int(i) for i in input().strip().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):
Age,Pri=map(int,input().split())
if Age>=13:
    print(Pri)
elif Age<=5:
    print(0)
else:
    print(int(Pri/2))

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



def main():
  a, b = map(int, input().strip().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:
    ans = b
if 6 <= a and a < 13:
    ans = b//2
if a < 6:
    ans = 0
print(ans)

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 = 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 = B // 2

print(ans)

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

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 sys


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


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))  
    print(solve(A, B))

if __name__ == '__main__':
    main()

Solution (Python):
a,b = map(int,input().split())
if a<6: 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(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):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7
 
A, B = MAP()
 
if A >= 13:
  print(B)
  exit()
if A <= 5:
  print(0)
  exit()
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):
n,k = map(int, input().split())

if n>12: print(k)
elif n>5: print(k//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):
number = input().split(" ")
A = int(number[0])
B = int(number[1])
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()))

if A <= 5:
        print(0)

if A >= 6 and A <= 12:
        print(round(B/2))

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

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

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

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

print(ans)

Solution (Python):
'''
n = int(input())
l = list(map(int, input().split()))
c = 1
for i in range(1, n):
    if l[i] >= l[i - 1]:
        c += 1
print(c)
'''
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 6<=A<=12:
    print(B//2)
else:
    print(B)

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

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

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

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

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

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

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

Solution (Python):



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

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

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

Solution (Python):
import math

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

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

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

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

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