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):
import sys
from io import StringIO
import unittest

class TestClass(unittest.TestCase):
    def assertIO(self, input, output):
        stdout, stdin = sys.stdout, sys.stdin
        sys.stdout, sys.stdin = StringIO(), StringIO(input)
        resolve()
        sys.stdout.seek(0)
        out = sys.stdout.read()[:-1]
        sys.stdout, sys.stdin = stdout, stdin
        self.assertEqual(out, output)
    def test_入力例_1(self):
        input = """30 100"""
        output = """100"""
        self.assertIO(input, output)
    def test_入力例_2(self):
        input = """12 100"""
        output = """50"""
        self.assertIO(input, output)
    def test_入力例_3(self):
        input = """0 100"""
        output = """0"""
        self.assertIO(input, output)
def resolve():
        (A,B)=(int(i) for i in input().split())
        if A>=13:
                print(B)
        elif A>=6:
                print(int(B/2))
        else:
                print(0)
        

if __name__ == "__main__":
    resolve()

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



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


if __name__ == '__main__':
    main()

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

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

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

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

Solution (Python):


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

ans = b
if a <= 5:
    ans = 0
elif a >= 6 and a <= 12:
    ans /= 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):


line = input()
sA, sB = line.split()
A = int(sA)
B = int(sB)

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(int(B/2))

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

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

ans = None

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

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

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

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

Solution (Python):
from sys import stdin

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

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

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

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

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

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

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

Solution (Python):

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

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

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 >= 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))
else:
    print('0')

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

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

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

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

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

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

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

if a >= 13:
  money = b
elif a >= 6 and a <=12:
  money = b/2
elif a <= 5:
  money = 0

print(int(money))

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

if __name__ == "__main__":
    main()

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

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

Solution (Python):

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):






def main():
	line = input()
	vector = [int(x) for x in line.split()]
	a = vector[0]
	b = vector[1]
	if a >= 13:
		print(b)
	if a >= 6 and a <= 12:
		print(b // 2)
	if a <= 5:
		print(0)







if __name__ == "__main__":
	main()

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

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

Solution (Python):

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

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

Solution (Python):
from collections import defaultdict, deque, Counter
from heapq import heappush, heappop, heapify
import math
import bisect
import random
from itertools import permutations, accumulate, combinations
import sys
import string
from bisect import bisect_left, bisect_right
from math import factorial


INF = float('inf')
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LIM(): return list(map(lambda x:int(x) - 1, sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def S(): return sys.stdin.readline().strip()
def IR(n): return [I() for i in range(n)]
def LIR(n): return [LI() for i in range(n)]
def LIRM(n): return [LIM() for i in range(n)]
def SR(n): return [S() for i in range(n)]
def LSR(n): return [LS() for i in range(n)]
def SRL(n): return [list(S()) for i in range(n)]
mod = 1000000007


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

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

Solution (Python):

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
a,b=map(int,input().split());print(b if a>12 else 0 if a<6 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 = (int(x) for x in input().split(' '))

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

Solution (Python):
import numpy as np
import sys

def main():
    input = sys.stdin.readline
    A, B = map(int, input().split())
    if A >= 13:
        return B
    elif A >= 6 and A < 13:
        return B // 2
    else:
        return 0


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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
a, b = list(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)

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

if A <= 5:
    print(0)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):

import sys


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



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

if __name__ == '__main__':
    main()

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

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

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

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

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

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

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

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

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

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

else:
    print(0)

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

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

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

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

Solution (Python):
A,B=map(int,input().split())
def money(a,b):
  if a >= 13:
    return  b
  if 6<=a<=12:
    return b//2
  if a<=5:
    return 0
print(money(A,B))

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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