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):
age, price = map(int, input().split())
ans = 0

if age <= 5:
    ans = 0
elif age >= 6 and age <= 12:
    ans = price // 2
else:
    ans = price 

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

Solution (Python):










import math
import copy

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

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

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

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

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

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

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

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

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

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())
P = B
if A < 13:
    if A <= 5:
        P = 0
    else:
        P = B/2

print(int(P))

Solution (Python):


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

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

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

ans = B
if (A <= 5):
    ans = 0
else:
    if (6 <= A and A <= 12):
        ans = B/2

print(int(ans))

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

Solution (Python):
def read():
    A, B = list(map(int, input().strip().split()))
    return A, B


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


if __name__ == '__main__':
    inputs = read()
    print("%d" % solve(*inputs))

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

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

print(int(wheel(A,B)))

Solution (Python):
from collections import deque
from heapq import heappush,heappop
import re

def int_raw():
    return int(input())

def ss_raw():
    return input().split()

def ints_raw():
    return list(map(int, ss_raw()))

INF = 1<<29

A,B = ints_raw()

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

main()

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

if a >= 13:
    ans += b
elif a >= 6 and a <= 12:
    ans += int(b/2)

print(ans)

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

if A >= 13:
    print(B)
elif A >= 6 and A <= 12:
    print("{:.0f}".format(B/2))
elif A <= 5:
    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):
A,B = input().split()
if int(A) < 6:
  out = 0
elif int(A) > 12:
  out = int(B)
else:
  out = int(B) // 2
print(out)

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

Solution (Python):
import math
import sys
sys.setrecursionlimit(10 ** 6 + 10)
from collections import defaultdict

def kari():
    map(int, input().split())

    num, num2 = map(int, input().split())
    data = [list(map(int, input().split())) for i in range(num2)]

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

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


if __name__ == '__main__':
    main()

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

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):
import sys
input = sys.stdin.readline

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

Solution (Python):
import sys
INF = float("inf")

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

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

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

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

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

Solution (Python):


''' 
------------------------
author : iiou16
------------------------
'''

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

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


if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

if 6 <= y <= 12:
    c = c //2
elif y < 6:
    c = 0
    
print(c)

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

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

if(a <= 5):
    b = 0

print(int(b))

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

Solution (Python):
import sys
import math

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

if A < 6:
    ans = 0
elif 6 <= A and A <= 12:
    ans = math.floor(B/2)
else:
    ans = B

print(ans)

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

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

Solution (Python):
s = input().split()

fee = 0
if int(s[0]) >= 13:
  fee = int(s[1])
elif int(s[0]) <= 5:
  fee = 0
else:
  fee = int(int(s[1])/2)

print(fee)

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

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

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

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

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

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

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

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

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)

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

if A <= 5:
    print(0)

Solution (Python):



a,b = input().split()

a = int(a)
b = int(b)

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

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

Solution (Python):

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

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

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

else:
    print(int(b))

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

Solution (Python):
import sys
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def II(): return int(sys.stdin.readline())
def LS(): return sys.stdin.readline().split()
sys.setrecursionlimit(10**7)
INF = 10 ** 18
MOD = 10 ** 9 + 7
def LI_(): return [int(x) - 1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def SI(): return input()
YN = lambda b: print('YES') if b else print('NO')
yn = lambda b: print('Yes') if b else print('No')

A, B = LI()

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

Solution (Python):


import sys
import math
import collections

A,B = map(int, sys.stdin.readline().rstrip().split(" "))
if A >= 13:
    print(B)
elif A>=6:
    print(B//2)
else:
    print(0)
exit(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):
inputs = list(map(int, input().split(' ')))[:2]
A = inputs[0]
B = inputs[1]

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

Solution (Python):
import sys
stdin = sys.stdin
 
sys.setrecursionlimit(10**5) 
 
def ii(): return int(stdin.readline())
def li(): return map(int, stdin.readline().split())
A, B = tuple(li())
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 6<=a<=12:
    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(int(B/2))
else:
    print(B)

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

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

Solution (Python):
import sys

def solve(a, b):
    if a >= 13:
        return b
    elif a <= 5:
        return 0
    else:
        return b / 2

if __name__ == '__main__':

    a, b = map(int, sys.stdin.readline().strip().split(" "))
    print solve(a, b)

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

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 > 12:
  print(B)
elif A > 5:
  print(int(0.5*B))
else:
  print(0)

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

print(int(ans))

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

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

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

Solution (Python):
import os, sys, re, math

A,B = [int(s) for s in input().split(' ')]

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

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

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

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

Solution (Python):



input_str = input().split()

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

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

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

Solution (Python):
import sys
sys.setrecursionlimit(1000000)
 
A,B = map(int,input().split())

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

Solution (Python):


[A, B] = [int(i) for i in input().split()]

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

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

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

Solution (Python):

lst_1 = input().split()

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

if (A >= 6) and (A <= 12):

    B = int(B/2)

elif A < 6:

    B = int(0)

print(B)

Solution (Python):
import collections as c
ip = lambda : map(int, input().split())


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

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

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

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

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

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

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

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

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

if A <= 5:
    B = 0
elif A < 13:
    B /= 2

print(int(B))

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

Solution (Python):
H,W = map(int,input().split(' '))
if H>=13:
    print(W)
elif H>=6:
    print(int(W/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):
import sys

A, B = input().split()

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

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

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

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

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

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

Solution (Python):
from sys import stdin
A,B=[int(x) for x in stdin.readline().rstrip().split()]
ans = 0
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<=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<13 and A>5:
  print(int(B/2))
else:
  print("0")

Solution (Python):




"""
2019年5月25日の AtCoder Beginnar Contest
"""


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


if __name__ == '__main__':
    main()

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):
from collections import defaultdict,deque
import sys,heapq,bisect,math,itertools,string,queue,datetime
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inpl(): return list(map(int, input().split()))
def inpl_str(): return list(input().split())

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

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

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):
p = input().split()
a,b = int(p[0]), int(p[1])
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)
else:
 if A > 5:
  print(int(B/2))
 else:
  print(0)

Solution (Python):
import sys
stdin = sys.stdin
sys.setrecursionlimit(10**6)
 
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nn = lambda: list(stdin.readline().split())
ns = lambda: stdin.readline().rstrip()
 
a,b = na()
 
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 < 6:
    print(0)
elif a < 13:
    print(int(b/2))
else:
    print(b)

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

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

Solution (Python):

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

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

    elif 6 <= A and A <= 12:
        print("{}".format(B//2))

    else:
        print("{}".format(B))


if __name__ == "__main__":
    main()

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

Solution (Python):


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

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

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

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

en = 0
if a[0] >= 13:
    en = a[1]
elif a[0] <= 5:
    en = 0
else:
    en = a[1]//2
int(en)

print(en)

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

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

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

print(ret)

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

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

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

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

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

if A >= 13:
    print(B)
if A >=6 and A <= 12:
    print(math.floor(B/2))
if A <= 5:
    print("0")

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

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

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

Solution (Python):
a, b = (int(_) for _ in 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 6 <= a < 13:
    b = int(b/2)
elif a < 6:
    b = 0

print(b)

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

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

Solution (Python):
A, B = list(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(b//2)

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

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

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

print(ans)

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

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

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

Solution (Python):


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

print(p)

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

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

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

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

    print(price)


if __name__ == '__main__':
    solve()

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:
    b = 0
elif a >= 6 and a <= 12:
    b //= 2

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


main()

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

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

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

Solution (Python):


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

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

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

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

rate = 0

if A < 6:
    rate = 0
elif A < 13:
    rate = int(B / 2)
else:
    rate = B
            
print("{}".format(rate))

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

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

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

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

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

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