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

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

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

elif a <= 12:
    print(int(b/2))

else:
    print(b)

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

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

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

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

print(ans)

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

print(ans)

Solution (Python):
from __future__ import print_function


import sys
import math
import string
import fractions
import re
import array
import copy
import functools
import operator

import collections
import itertools
import bisect
import heapq


from heapq import heappush
from heapq import heappop



import random




def eprint(*args, **kwargs):
    print(*args, file=sys.stderr, **kwargs)


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

if __name__ == '__main__':
    main()

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

Solution (Python):


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

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

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

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

ans = 0

if A >= 13:
    ans = B
elif (12 >= A) and (A >= 6):
    ans = (B>>1)
elif 5 >= A:
    ans = 0

print ans

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

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


main()

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

print(ryoukin)

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

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

Solution (Python):



v = list(map(int, input().split()))
a, b = v[0], v[1]

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

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

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

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

output_value = None
if 13 <= A:
    output_value = B
elif 6 <= A <= 12:
    output_value = int(B/2)
else:
    output_value = 0

print(output_value)

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

if N < 6:
    print(0)
    exit(0)
if N < 13:
    print(K//2)
    exit(0)
print(K)

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

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

Solution (Python):




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

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


def solve():
    A, B = list(map(int, input().split()))

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

if __name__ == "__main__":
    solve()

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

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

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

fare = 0
if 6 <= A <= 12:
    fare = int(B/2)
if A > 12:
    fare = B

print(fare)

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

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


if __name__ == '__main__':
    main()

Solution (Python):

def main():
    A, B = map(int, input().split())
    
    
    if A >= 13:
        print(B)
        return
    if A >= 6:
        print(int(B / 2))
        return
    print(0)
    pass


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 = tuple([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 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)
elif 12 >= 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>12: print(B)
elif A>5: 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):


from sys import stdin

A, B = list(map(int, stdin.readline().split()))

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

Solution (Python):


a, b = [int(x) for x in input().rstrip().split(" ")]

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

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

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

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

print(nori)

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

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

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

Solution (Python):


import sys

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

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

print( c )

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

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

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

Solution (Python):

from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
import itertools
sys.setrecursionlimit(10**5)
stdin = sys.stdin
bisect_left = bisect.bisect_left
bisect_right = bisect.bisect_right
def LI(): return list(map(int, stdin.readline().split()))
def LF(): return list(map(float, stdin.readline().split()))
def LI_(): return list(map(lambda x: int(x)-1, stdin.readline().split()))
def II(): return int(stdin.readline())
def IF(): return float(stdin.readline())
def LS(): return list(map(list, stdin.readline().split()))
def S(): return list(stdin.readline().rstrip())
def IR(n): return [II() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def FR(n): return [IF() for _ in range(n)]
def LFR(n): return [LI() for _ in range(n)]
def LIR_(n): return [LI_() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
mod = 1000000007
inf = float('INF')


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


def B():
    r, d, x = LI()
    for i in range(10):
        print(x * r - d)
        x = x * r - d
    return


def C():
    return


def D():
    return


def E():
    return


def F():
    return


def G():
    return


def H():
    return


if __name__ == '__main__':
    A()

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

Solution (Python):

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

Solution (Python):


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

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

print (output)

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

age = parents[0]
price = parents[1]

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

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

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

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

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

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

else:
    print(0)

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

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

if A[0]<6:
    ans = 0
elif A[0]<13:
    ans = int(A[1]/2)
else:
    ans = int(A[1])

print(str(ans))

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

Solution (Python):


A,B = [int(x) for x 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())
print(b if a >= 13 else 0 if a <= 5 else b//2)

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

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

Solution (Python):
from sys import stdin
    
def main():
    a,b = [int(x) for x in stdin.readline().rstrip().split()]

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

A, B = s_input()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
A, B = [int(i) for i in input().strip().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()) 


ret = b
if a < 13:
    ret//=2
if a<=5:
    ret = 0
print(ret)

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):
import sys,collections as cl,bisect as bs
sys.setrecursionlimit(100000)
Max = sys.maxsize
def l():
	return list(map(int,input().split()))
def m():
	return map(int,input().split())
def s(x):
	a = []
	aa = x[0]
	su = 1
	for i in range(len(x)-1):
		if aa == x[i+1]:
			a.append([aa,su])
			aa = x[i+1]
			su = 1
		else:
			su += 1
	a.append([aa,su])
	return a
def jo(x):
	return " ".join(map(str,x))


a,b = m()

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

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

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

res = 0
if A <= 5:
    res = 0
elif 6 <= A and A <= 12:
    res = B / 2
else:
    res = B

print(int(res))

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

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


if __name__ == '__main__':
    main()

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

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

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

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

if num1 >=13:
    print(str(num2))
elif num1 >= 6:
    print(str(num2//2))
else :
    print("0")

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

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

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

Solution (Python):
def getN():
    return int(input())

def getMN():
    return list(map(int, input().split()))

def getlist():
    return list(map(int, input().split()))

a, b = getlist()

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 = (int(x) for x in input().split())
if A in range(0, 6):
    print(0)
    exit()
elif A in range(6, 13):
    print(B//2)
    exit()
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):
n,m=list(map(int,input().split()))
if n<6:
    print(0)
elif n<13:
    print(int(m/2))
else:
    print(int(m))

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

Solution (Python):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

sys.setrecursionlimit(10**7)
inf=10**20
mod=10**9+7

def LI(): return list(map(int,input().split()))
def II(): return int(input())
def LS(): return input().split()
def S(): return input()

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

main()

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

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())
print([0,b//2,b][(a>12)+(a>5)])

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

print(ans)

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

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

Solution (Python):


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

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

Solution (Python):



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

if __name__=="__main__":
    solve()

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

if y <= 5:
    c = 0
elif y <= 12:
    c = c // 2

print(c)

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

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

Solution (Python):
from __future__ import division, print_function
import os,sys
from io import BytesIO, IOBase

if sys.version_info[0] < 3:
    from __builtin__ import xrange as range
    from future_builtins import ascii, filter, hex, map, oct, zip
else:
    _str = str
    str = lambda x=b"": x if type(x) is bytes else _str(x).encode()





inf = float("inf")
mod = 10**9+7







def dmain():
    sys.setrecursionlimit(100000000)
    threading.stack_size(40960000)
    thread = threading.Thread(target=main)
    thread.start()
    

abc='abcdefghijklmnopqrstuvwxyz'
abd={'a': 0, 'b': 1, 'c': 2, 'd': 3, 'e': 4, 'f': 5, 'g': 6, 'h': 7, 'i': 8, 'j': 9, 'k': 10, 'l': 11, 'm': 12, 'n': 13, 'o': 14, 'p': 15, 'q': 16, 'r': 17, 's': 18, 't': 19, 'u': 20, 'v': 21, 'w': 22, 'x': 23, 'y': 24, 'z': 25}
mod,MOD=1000000007,998244353
vow=['a','e','i','o','u']
dx,dy=[-1,1,0,0],[0,0,1,-1]
def getKey(item): return item[0] 
def sort2(l):return sorted(l, key=getKey)
def d2(n,m,num):return [[num for x in range(m)] for y in range(n)]
def isPowerOfTwo (x): return (x and (not(x & (x - 1))) )
def decimalToBinary(n): return bin(n).replace("0b","")
def ntl(n):return [int(i) for i in str(n)]

def gcd(x, y):
    while y:
        x, y = y, x % y
    return x


def factorial_p(n, p):
    ans = 1
    if n <= p // 2:
        for i in range(1, n + 1):
            ans = (ans * i) % p
    else:
        for i in range(1, p - n):
            ans = (ans * i) % p
        ans = pow(ans, p - 2, p)
        if n % 2 == 0:
            ans = p - ans
    return ans

def nCr_p(n, r, p):
    ans = 1
    while (n != 0) or (r != 0):
        a, b = n % p, r % p
        if a < b:
            return 0
        ans = (ans * factorial_p(a, p) * pow(factorial_p(b, p), p - 2, p) * pow(factorial_p(a - b, p), p - 2, p)) % p
        n //= p
        r //= p
    return ans

def prime_sieve(n):
    """returns a sieve of primes >= 5 and < n"""
    flag = n % 6 == 2
    sieve = bytearray((n // 3 + flag >> 3) + 1)
    for i in range(1, int(n**0.5) // 3 + 1):
        if not (sieve[i >> 3] >> (i & 7)) & 1:
            k = (3 * i + 1) | 1
            for j in range(k * k // 3, n // 3 + flag, 2 * k):
                sieve[j >> 3] |= 1 << (j & 7)
            for j in range(k * (k - 2 * (i & 1) + 4) // 3, n // 3 + flag, 2 * k):
                sieve[j >> 3] |= 1 << (j & 7)
    return sieve

def prime_list(n):                            
    """returns a list of primes <= n"""
    res = []
    if n > 1:
        res.append(2)
    if n > 2:
        res.append(3)
    if n > 4:
        sieve = prime_sieve(n + 1)
        res.extend(3 * i + 1 | 1 for i in range(1, (n + 1) // 3 + (n % 6 == 1)) if not (sieve[i >> 3] >> (i & 7)) & 1)
    return res

def is_prime(n):
    """returns True if n is prime else False"""
    if n < 5 or n & 1 == 0 or n % 3 == 0:
        return 2 <= n <= 3
    s = ((n - 1) & (1 - n)).bit_length() - 1
    d = n >> s
    for a in [2, 325, 9375, 28178, 450775, 9780504, 1795265022]:
        p = pow(a, d, n)
        if p == 1 or p == n - 1 or a % n == 0:
            continue
        for _ in range(s):
            p = (p * p) % n
            if p == n - 1:
                break
        else:
            return False
    return True


def all_factors(n):
    """returns a sorted list of all distinct factors of n"""
    small, large = [],[]
    for i in range(1, int(n**0.5) + 1, 2 if n & 1 else 1):
        if not n % i:
            small.append(i)
            large.append(n//i)
    large.reverse()
    small.extend(large)
    return small

def get_array(): return list(map(int, sys.stdin.readline().strip().split()))
def get_ints(): return map(int, sys.stdin.readline().strip().split())
def input(): return sys.stdin.readline().strip()



def main():
	age,B=get_ints()
	if age>=13:
		print(B)
	elif 6<=age<=12:
		print(B//2)
	else:
		print(0)
		


BUFSIZE = 8192


class FastIO(IOBase):
    newlines = 0

    def __init__(self, file):
        self._fd = file.fileno()
        self.buffer = BytesIO()
        self.writable = "x" in file.mode or "r" not in file.mode
        self.write = self.buffer.write if self.writable else None

    def read(self):
        if self.buffer.tell():
            return self.buffer.read()
        return os.read(self._fd, os.fstat(self._fd).st_size)

    def readline(self):
        while self.newlines == 0:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            self.newlines = b.count(b"\n") + (not b)
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines -= 1
        return self.buffer.readline()

    def flush(self):
        if self.writable:
            os.write(self._fd, self.buffer.getvalue())
            self.buffer.truncate(0), self.buffer.seek(0)


def print(*args, **kwargs):
    """Prints the values to a stream, or to sys.stdout by default."""
    sep, file = kwargs.pop("sep", b" "), kwargs.pop("file", sys.stdout)
    at_start = True
    for x in args:
        if not at_start:
            file.write(sep)
        file.write(str(x))
        at_start = False
    file.write(kwargs.pop("end", b"\n"))
    if kwargs.pop("flush", False):
        file.flush()


sys.stdin, sys.stdout = FastIO(sys.stdin), FastIO(sys.stdout)
input = lambda: sys.stdin.readline().rstrip(b"\r\n")





if __name__ == "__main__":
    main()

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

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

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