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

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

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

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

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

Solution (Python):


a, b = map(int, raw_input().split())
if a >= 13:
    print b
elif a >= 6:
    print 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):
import unittest


class TestA(unittest.TestCase):
    def test_1(self):
        self.assertEqual(think(30, 100), 100)

    def test_2(self):
        self.assertEqual(think(12, 100), 50)

    def test_3(self):
        self.assertEqual(think(0, 100), 0)


def solve():
    a, b = read()
    result = think(a, b)
    write(result)


def read():
    return read_int(2)


def read_int(n):
    return read_type(int, n)


def read_float(n):
    return read_type(float, n)


def read_type(t, n):
    return list(map(lambda x: t(x), read_line().split(' ')))[:n]


def read_line(n=0):
    if n == 0:
        return input().rstrip()
    else:
        return input().rstrip()[:n]


def think(a, b):
    if a <= 5:
        return 0
    elif a <= 12:
        return b // 2
    return b


def write(result):
    print(result)


if __name__ == '__main__':
    
    solve()

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

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

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

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

Solution (Python):

import math
import datetime





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



def ri():
    return int(input())

def rl():
    return list(input().split())

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

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


if __name__ == '__main__':
    main()

Solution (Python):
A,B=tuple(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<=5:
  print(0)
else:
  print(b//2)

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

Solution (Python):
def main():
    i = list(map(int, input().split()))
    a = i[0]
    b = i[1]

    
    

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

if __name__ == "__main__":
    main()

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

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

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

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

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

Solution (Python):

import sys, math, itertools, heapq, collections, bisect
input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8')
sys.setrecursionlimit(10**8)
inf = float('inf')
ans = count = 0



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

Solution (Python):
import sys
input = sys.stdin.readline
def print_ans(A, B):
    """Test Case
    >>> print_ans(30, 100)
    100
    >>> print_ans(12, 100)
    50
    >>> print_ans(0, 100)
    0
    """
    if A > 12:
        ans = B
    elif 6 <= A <= 12:
        ans = B // 2
    else:
        ans = 0
    print(ans)

if __name__ == '__main__':
    A, B = map(int, input().rstrip().split())
    print_ans(A, B)

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

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

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

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

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

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

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

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

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

Solution (Python):
from collections import defaultdict,deque, Counter
import sys,heapq,bisect,math,itertools,string,queue,copy,time
import numpy as np
sys.setrecursionlimit(10**8)
INF = float('inf')
mod = 10**9+7
eps = 10**-7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_str(): return list(sys.stdin.readline().split())
ans = 0

[A, B] = inpl()
if A <= 5:
    ans = 0
elif A>5 and A < 13:
    ans = B//2
else:
    ans = B

print(ans)

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
def inpl():
    return list(map(int, input().split()))


A, B = inpl()

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

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

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

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

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

Solution (Python):
import sys
sys.setrecursionlimit(10**9)
INF=10**18
def input():
    return sys.stdin.readline().rstrip()

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

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

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

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

Solution (Python):

import sys










def main():
    a, b = [int(x) for x in sys.stdin.readline().split()]
    if a >= 13:
        ans = b
    elif a >= 6:
        ans = b // 2
    else:
        ans = 0
    
    print(ans)


if __name__ == "__main__":
    main()

Solution (Python):

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

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

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

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

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

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

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

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

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

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

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

print(ret)

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

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

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

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

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

Solution (Python):
tmp = list(map(int, input().split()))
a = tmp[0]
b = tmp[1]

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):
import sys
sys.setrecursionlimit(2147483647)
INF=float("inf")
MOD=10**9+7
input=lambda :sys.stdin.readline().rstrip()
def resolve():
    a,b=map(int,input().split())
    if(a>=13):
        print(b)
    elif(a<=5):
        print(0)
    else:
        print(b//2)
resolve()

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

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

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

import sys
def input():
    return sys.stdin.readline().rstrip()

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



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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):

import sys
sys.setrecursionlimit(10000)
INF = 1<<32


def solve(A: int, B: int):
    if(A >= 13):
        print(B)
    elif 6 <= A <= 12:
        print(B//2)
    else:
        print(0)
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    solve(A, B)

if __name__ == '__main__':
    main()

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

print(ans)

Solution (Python):
a, b = list(map(int, input().split()))
 
if a < 6:
  print(0)

elif 6 <= a and a < 13:
  print(b // 2)
  
else:
  print(b)

Solution (Python):

import sys


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



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word

    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    solve(A, B)


if __name__ == "__main__":
    main()

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):

import math


def main():
    A,B = map(int, input().split())
    if A <= 5:
        print(0)
        return
    if A <= 12:
        print(math.floor(B/2))
        return
    print(B)


if __name__ == "__main__":
    main()

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

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

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


if __name__ == '__main__':
    main()

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

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

Solution (Python):

A,B=[int(x) for x in 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 a>=6:
    print(int(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):
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(5<A<=12):
    print(int(B/2))
else:
    print(B)

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

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

if __name__ == '__main__':
    solve()

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

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

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

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

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

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

Solution (Python):
a,b = map(int,input().split())
if a >= 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 A>=13:
  print(B)
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):
AB = input().split()
age = int(AB[0])
fee = int(AB[1])
yen = 0
if age >= 13:
    yen = fee
elif age < 13 and age >= 6:
    yen = fee // 2
else:
    yen = 0
print(yen)

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

Solution (Python):

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

Solution (Python):

A, B = list(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(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):
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().strip().split()))
s = int(b/2)
if a >= 13:
    print(b)
elif a <= 5:
    print(0)
else:
    print(s)

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

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

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

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

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    a, b = list(map(int, input().rstrip('\n').split()))
    if a >= 13:
        print(b)
    elif 6 <= a <= 12:
        print(b // 2)
    else:
        print(0)


if __name__ == '__main__':
    slove()

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

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

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

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

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

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

Solution (Python):
from sys import stdin
from itertools import combinations_with_replacement,product

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

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

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

Solution (Python):

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

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

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

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

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

Solution (Python):
INPUT = list(map(int,input().split()))
A = INPUT[0]
B = INPUT[1]

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

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

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

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

if a<=5:
	print(0)
elif (a>=6) & (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 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(int(b/2))
else:
  print(int(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):
s,o=(int(x) for x in input().split())
if s>12:
  y=o
elif s>5:
  y=o//2
else:
   y=0
print(y)

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

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

Solution (Python):
import sys

input = sys.stdin.readline


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):
def slove():
    import sys
    input = sys.stdin.readline
    a, b = list(map(int, input().rstrip('\n').split()))
    if 13 <= a:
        print(b)
    elif 6 <= a <= 12:
        print(b // 2)
    elif a <= 5:
        print(0)


if __name__ == '__main__':
    slove()

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

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

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

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