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

Solution (Python):
num = input().split()
age, price = int(num[0]), int(num[1])

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

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

Solution (Python):
import sys
s2nn = lambda s: [int(c) for c in s.split(' ')]
ss2nn = lambda ss: [int(s) for s in ss]
ss2nnn = lambda ss: [s2nn(s) for s in ss]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n: [sys.stdin.readline().rstrip() for _ in range(n)]
ii2sss = lambda n: [list(sys.stdin.readline().rstrip()) for _ in range(n)]
ii2nn = lambda n: ss2nn(ii2ss(n))
ii2nnn = lambda n: ss2nnn(ii2ss(n))

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

main()

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

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

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

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

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 6<=a<=12:
    print(int(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):
import sys

sys.setrecursionlimit(4100000)


def inputs(num_of_input):
    ins = [input() for i in range(num_of_input)]
    return ins


def solve(inputs):
    [A, B] = string_to_int(inputs[0])

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


def string_to_int(string):
    return list(map(lambda x: int(x), string.split()))


if __name__ == "__main__":
    ret = solve(inputs(1))
    print(ret)

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

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

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

if data[0]<= 5 :
  print(0)
elif data[0]<=12 :
  print(int(data[1]/2))
else:
  print(data[1])

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

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

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

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

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

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

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

print(v)

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

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

Solution (Python):
Age, Fee = (input().split())

if int(Age) >= 13:
    print(Fee)
elif int(Age) <= 13 and int(Age) >= 6:
    half = int(Fee) // 2
    print(half)
else:
    print(0)

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

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

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().split())


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

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

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

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

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

print(int(price))

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

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):
N,B = map(int, input().split())
if N >= 13:
    print(B)
elif 6 <= N <= 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 = [int(_) for _ in input().split()]

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

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

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

Solution (Python):

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

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

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

Solution (Python):

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

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

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

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

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

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

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

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

if a[0]<=5:
  print(0)
elif a[0]<=12:
  print(int(0.5*a[1]))
else:
  print(a[1])

Solution (Python):
x,y = map(int,input().split())
 
def Decisionmoney(x,y):
  if x <= 5:
    num = 0
  elif x <= 12:
    num = y // 2
  else:
    num = y
  return num
 
print(Decisionmoney(x,y))

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

elif A<=5:
    print(0)

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

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

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

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

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

Solution (Python):
x = list(map(lambda y: int(y),input().split(" ")))

if x[0] >= 13:
	print(x[1])
elif x[0] >= 6:
	print(int(x[1]/2))
else:
	print(0)

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

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

main()

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


main()

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

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

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

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

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

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

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

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

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

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

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

if Age >= 13:
    print(Full_cost)
elif 6 <= Age <=12:
    print(int(Full_cost/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):
from sys import stdin
from collections import defaultdict

A, B = [int(x) for x in stdin.readline().rstrip().split()]

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

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

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

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

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

Solution (Python):
import numpy as np

N = input().split(" ")

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

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

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

Solution (Python):


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

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

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

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







import sys
sys.setrecursionlimit(10**7)
from itertools import accumulate, combinations, permutations 
from math import factorial
def combinations_count(n, r):
    
    
    
    if n - r < r: r = n - r
    if r == 0: return 1
    if r == 1: return n
    numerator = [n - r + k + 1 for k in range(r)]
    denominator = [k + 1 for k in range(r)]
    for p in range(2,r+1):
        pivot = denominator[p - 1]
        if pivot > 1:
            offset = (n - r) % p
            for k in range(p-1,r,p):
                numerator[k - offset] /= pivot
                denominator[k] /= pivot
    result = 1
    for k in range(r):
        if numerator[k] > 1:
            result *= int(numerator[k])
    return result
def combination_with_repetition_count(n, r):
    return combinations_count(n + r - 1, r)
from collections import deque, Counter 
from heapq import heapify, heappop, heappush, heappushpop, heapreplace,nlargest,nsmallest 
from copy import deepcopy, copy 
from operator import itemgetter 


from functools import reduce
from fractions import gcd 
def gcds(numbers):
    return reduce(gcd, numbers)
def lcm(x, y):
    return (x * y) // gcd(x, y)
def lcms(numbers):
    return reduce(lcm, numbers, 1)



INF = 10 ** 18
MOD = 10 ** 9 + 7
modpow = lambda a, n, p = MOD: pow(a, n, p) 
def modinv(a, p = MOD):
    
    
    return modpow(a, p-2, p)
def modinv_list(n, p = MOD):
    if n <= 1:
        return [0,1][:n+1]
    else:
        inv_t = [0,1]
        for i in range(2, n+1):
            inv_t += [inv_t[p % i] * (p - int(p / i)) % p]
        return inv_t
def modfactorial_list(n, p = MOD):
    if n == 0:
        return [1]
    else:
        l = [0] * (n+1)
        tmp = 1
        for i in range(1, n+1):
            tmp = tmp * i % p
            l[i] = tmp
        return l
def modcomb(n, k, fac_list = [], p = MOD):
    
    
    from math import factorial
    if n < 0 or k < 0 or n < k: return 0
    if n == 0 or k == 0: return 1
    if len(fac_list) <= n:
        a = factorial(n) % p
        b = factorial(k) % p
        c = factorial(n-k) % p
    else:
        a = fac_list[n]
        b = fac_list[k]
        c = fac_list[n-k]
    return (a * modpow(b, p-2, p) * modpow(c, p-2, p)) % p
def modadd(a, b, p = MOD):
    return (a + b) % MOD
def modsub(a, b, p = MOD):
    return (a - b) % p
def modmul(a, b, p = MOD):
    return ((a % p) * (b % p)) % p
def moddiv(a, b, p = MOD):
    return modmul(a, modpow(b, p-2, p))




    
    

    
    
    
    
    

    
    


r = lambda: sys.stdin.readline().strip() 
R = lambda: list(map(int, r().split())) 
Rmap = lambda: map(int, r().split())

a, b = R()
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 = 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)
elif (A < 13) & (A > 5):
    print(B // 2)
elif 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 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())
ans=0
if a>=13:
    ans=b
elif 6<=a<=12:
    ans=b//2
print(ans)

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

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

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

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

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(i) for i in input().split()]

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

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

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

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

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

Solution (Python):
A,B=map(int,input().split())
P=B-0.5*B*(A<13)
P=P*(A>5)
print(int(P))

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

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

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

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

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

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

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

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

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

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

print(ans)

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

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

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

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


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

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

Solution (Python):
def solve(string):
    a, b = map(int, string.split())
    return str(b) if a >= 13 else "0" if a <= 5 else str(b // 2)


if __name__ == '__main__':
    print(solve(input()))

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

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

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

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

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

ans = B

if(A <= 5):
	ans = 0
if(A >= 6 and A <= 12):
	ans //= 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 >= 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):
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 = (input().split(' '))


answer = B if int(A)>=13 else int(B)//2

if int(A)<=5:
    answer = 0
print(answer)

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

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

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

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

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

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

if a > 12:
  print(b)
elif a > 5:
  print(round(b/2))
else:
  print(0)

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(int(ans))

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
n,m=map(int,raw_input().split())

if n<=5:
    print(0)
elif n<=12:
    print(m/2)
else:
    print(m)